improvements to date formatting

- leading zeros on month/day
- milliseconds in chat tooltips
This commit is contained in:
Jon Atkins
2013-05-26 19:29:48 +01:00
parent 84e0aeb679
commit 5430992d70
3 changed files with 23 additions and 4 deletions

View File

@ -27,7 +27,7 @@ window.renderPortalDetails = function(guid) {
var playerText = player ? ['owner', player] : null;
var time = d.captured
? '<span title="' + unixTimeToString(d.captured.capturedTime, true) + '">'
? '<span title="' + unixTimeToDateTimeString(d.captured.capturedTime, false) + '">'
+ unixTimeToString(d.captured.capturedTime) + '</span>'
: null;
var sinceText = time ? ['since', time] : null;