Display localized timestamp in title of message times

This commit is contained in:
Jérémie Astori 2016-10-01 02:46:19 -04:00
parent 52a0552bc4
commit fc03a338fc
4 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
"use strict";
Handlebars.registerHelper("localetime", function(time) {
return new Date(time).toLocaleString();
});

View file

@ -1,5 +1,5 @@
<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" id="msg-{{id}}">
<span class="time">
<span class="time" title="{{localetime time}}">
{{tz time}}
</span>
<span class="from">

View file

@ -1,5 +1,5 @@
<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}" id="msg-{{id}}">
<span class="time">
<span class="time" title="{{localetime time}}">
{{tz time}}
</span>
<span class="from"></span>

View file

@ -1,5 +1,5 @@
<div class="msg {{type}}{{#if self}} self{{/if}}{{#if highlight}} highlight{{/if}}">
<span class="time">
<span class="time" title="{{localetime time}}">
{{tz time}}
</span>
<span class="from">[{{command}}]</span>