diff --git a/client/js/libs/handlebars/localetime.js b/client/js/libs/handlebars/localetime.js new file mode 100644 index 00000000..c8dc097a --- /dev/null +++ b/client/js/libs/handlebars/localetime.js @@ -0,0 +1,5 @@ +"use strict"; + +Handlebars.registerHelper("localetime", function(time) { + return new Date(time).toLocaleString(); +}); diff --git a/client/views/msg.tpl b/client/views/msg.tpl index 65737198..8817f2be 100644 --- a/client/views/msg.tpl +++ b/client/views/msg.tpl @@ -1,5 +1,5 @@