Shuo/client/js/libs/handlebars/tz.js

7 lines
146 B
JavaScript
Raw Normal View History

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