diff options
Diffstat (limited to 'web/nms.gathering.org/js/nms-map.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-map.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js index c64a387..224b3db 100644 --- a/web/nms.gathering.org/js/nms-map.js +++ b/web/nms.gathering.org/js/nms-map.js @@ -180,7 +180,11 @@ nmsMap._resizeEvent = function() { nmsMap.drawNow = function () { var now = nmsData.now; - now = new Date(nmsData.now); //Date assumes UTC + if(String(now).indexOf('T') == -1) { //If now does not contain 'T' we assume its in epoch format + now = new Date(nmsData.now * 1000); + } else { + now = new Date(nmsData.now); //Date assumes UTC + } now = now.toString().split(' ').splice(1,4).join(' '); //Date returns local time if (nmsMap._lastNow == now) { nmsMap.stats.nowDups++; |