2014-07-23 20:16:00 -04:00
|
|
|
Handlebars.registerHelper(
|
|
|
|
"tz", function(time) {
|
2016-03-11 15:14:15 -05:00
|
|
|
time = new Date(time);
|
|
|
|
var h = time.getHours();
|
|
|
|
var m = time.getMinutes();
|
|
|
|
|
|
|
|
if (h < 10) {
|
|
|
|
h = "0" + h;
|
2014-09-27 15:17:05 -04:00
|
|
|
}
|
2016-03-11 15:14:15 -05:00
|
|
|
|
|
|
|
if (m < 10) {
|
|
|
|
m = "0" + m;
|
|
|
|
}
|
|
|
|
|
|
|
|
return h + ":" + m;
|
2014-07-23 20:16:00 -04:00
|
|
|
}
|
|
|
|
);
|