From f70f4938abcf511617a5f060a04b5687efbde92e Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 21 Mar 2015 20:10:46 +0100 Subject: [PATCH] parse timestamps as utc, format in locale "de" --- history.html | 2 +- history.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/history.html b/history.html index c4cf4e6..8dfe67a 100644 --- a/history.html +++ b/history.html @@ -188,7 +188,7 @@ - + diff --git a/history.js b/history.js index b1120d2..588ca02 100644 --- a/history.js +++ b/history.js @@ -30,6 +30,8 @@ function getJSON(url) { function main() { getJSON("config.json").then( function (config) { + moment.locale("de") + var options = { worldCopyJump: true, zoomControl: false } @@ -101,8 +103,8 @@ function handle_data(config, map) { }) nodes.forEach( function(node) { - node.firstseen = moment(node.firstseen) - node.lastseen = moment(node.lastseen) + node.firstseen = moment.utc(node.firstseen) + node.lastseen = moment.utc(node.lastseen) }) var age = moment().subtract(14, 'days')