hardlounge/client/js/libs/handlebars/tz.js
2014-07-23 17:16:00 -07:00

7 lines
146 B
JavaScript

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