diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-25 23:53:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-06-25 23:53:05 +0200 |
commit | c50780f410146b5d3201da9a4e4a43049c95bed6 (patch) | |
tree | 2e4317dcb15933550e0368abea0baf52aee53247 /server.js | |
parent | ce182275027c3202a1fa4dcf6b0ed87ede79da37 (diff) | |
download | server-c50780f410146b5d3201da9a4e4a43049c95bed6.tar.gz |
Parse strings as GMT for "human_date" formatting.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |