diff options
author | Kristian Lyngstol <kly@kly@.no> | 2016-03-25 15:48:33 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly@.no> | 2016-03-25 15:48:33 +0100 |
commit | ddd56ea9f56f098b52cd8aae5b3c54ac26670bac (patch) | |
tree | bb865a70f0db9777f95b4968399ce38e46138695 /web/nms.gathering.org/js/nms-map.js | |
parent | 7ac4551ed94c1f1393bc69e595a90dbe15bc8f6c (diff) |
NMS: TV mode?
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, 6 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js index ada6886..c64a387 100644 --- a/web/nms.gathering.org/js/nms-map.js +++ b/web/nms.gathering.org/js/nms-map.js @@ -172,10 +172,16 @@ nmsMap._resizeEvent = function() { * * FIXME: 2: Should really just use _drawText() instead somehow. Font size * being an issue. + * + * FIXME 3: Currently assuming that time from api is UTC and converting to + * local time zone with js. Should find a more robust solution. + * */ nmsMap.drawNow = function () { var now = nmsData.now; + 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++; return; |