mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 20:43:08 +00:00
10 lines
191 B
JavaScript
10 lines
191 B
JavaScript
Handlebars.registerHelper(
|
|
"tz", function(time) {
|
|
if (time) {
|
|
var utc = moment.utc(time, "HH:mm:ss").toDate();
|
|
return moment(utc).format("HH:mm");
|
|
} else {
|
|
return "";
|
|
}
|
|
}
|
|
);
|