2014-07-23 20:16:00 -04:00
|
|
|
Handlebars.registerHelper(
|
|
|
|
"tz", function(time) {
|
2014-09-27 15:17:05 -04:00
|
|
|
if (time) {
|
|
|
|
var utc = moment.utc(time, "HH:mm:ss").toDate();
|
|
|
|
return moment(utc).format("HH:mm");
|
|
|
|
} else {
|
|
|
|
return "";
|
|
|
|
}
|
2014-07-23 20:16:00 -04:00
|
|
|
}
|
|
|
|
);
|