thelounge/client/js/libs/handlebars/tz.js
2014-09-27 12:17:13 -07:00

10 lines
191 B
JavaScript

Handlebars.registerHelper(
"tz", function(time) {
if (time) {
var utc = moment.utc(time, "HH:mm:ss").toDate();
return moment(utc).format("HH:mm");
} else {
return "";
}
}
);