2
0
Fork 0
mirror of https://github.com/thelounge/thelounge synced 2025-01-02 23:58:43 +00:00
thelounge/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");
}
);