From f7bef29b92c1a084bd0bd292824b80fd049cf0d2 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Tue, 5 Feb 2019 20:03:55 +0000 Subject: [PATCH] Fix date conversion on ImproveOSM comments --- modules/ui/improveOSM_comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/improveOSM_comments.js b/modules/ui/improveOSM_comments.js index 707869b46..a7b75d7cd 100644 --- a/modules/ui/improveOSM_comments.js +++ b/modules/ui/improveOSM_comments.js @@ -77,7 +77,7 @@ export function uiImproveOsmComments() { if (!s) return null; var detected = utilDetect(); var options = { day: 'numeric', month: 'short', year: 'numeric' }; - var d = new Date(s); + var d = new Date(s * 1000); // timestamp is served in seconds, date takes ms if (isNaN(d.getTime())) return null; return d.toLocaleDateString(detected.locale, options); }