From c50780f410146b5d3201da9a4e4a43049c95bed6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 25 Jun 2023 23:53:05 +0200 Subject: Parse strings as GMT for "human_date" formatting. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 89b92d6..078a5c6 100644 --- a/server.js +++ b/server.js @@ -210,7 +210,7 @@ function SLOG(socket, ...msg) { function human_date(date) { if (typeof date === 'string') - date = julianday_from_epoch(Date.parse(date)) + date = julianday_from_epoch(Date.parse(date + "Z")) if (typeof date !== 'number') return "never" var days = julianday_from_epoch(Date.now()) - date -- cgit v1.2.3