JSFiddle - React, Tailwind, and code Playground
HTML
<div class="mtime">7:50</div>
JavaScript
$('.mtime').each(function() {
var time = $(this).text();
var date = new Date();
date = new Date(date.toDateString() + ' ' + time + ' UTC')
$(this).text(date.getHours() + ':' + date.getMinutes());
});