thelounge/client/js/libs/handlebars/tz.js

11 lines
191 B
JavaScript
Raw Normal View History

2014-07-24 00:16:00 +00:00
Handlebars.registerHelper(
"tz", function(time) {
2014-09-27 19:17:05 +00:00
if (time) {
var utc = moment.utc(time, "HH:mm:ss").toDate();
return moment(utc).format("HH:mm");
} else {
return "";
}
2014-07-24 00:16:00 +00:00
}
);