Consolidate locale time helpers

When working on #660, I missed that helper already existed, added in #167.
This commit is contained in:
Jérémie Astori 2016-10-01 15:38:06 -04:00
parent cd90d50a37
commit 4e1d89f567
2 changed files with 1 additions and 8 deletions

View file

@ -1,7 +0,0 @@
Handlebars.registerHelper(
"localeDate", function(date) {
date = new Date(date);
return date.toLocaleString();
}
);

View file

@ -1,3 +1,3 @@
Topic set by
<span role="button" class="user {{colorClass nick}}" data-name="{{nick}}">{{mode}}{{nick}}</span>
on {{localeDate when}}
on {{localetime when}}