Merge pull request #662 from thelounge/astorije/consolidate-helpers

Consolidate locale time helpers
This commit is contained in:
Pavel Djundik 2016-10-01 23:38:06 +03:00 committed by GitHub
commit 2cbe0caf40
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}}