From ddc4a5678adb3b0c9baddbed8e265d4b26c8e474 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 2 Jan 2023 17:17:21 +0100 Subject: Fix date in message replies. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.js') diff --git a/server.js b/server.js index 380e14d..b85be9e 100644 --- a/server.js +++ b/server.js @@ -816,7 +816,7 @@ app.post('/message/send', must_be_logged_in, function (req, res) { }) function quote_body(message) { - let when = new Date(message.time).toDateString() + let when = new Date(from_julianday(message.time)).toDateString() let who = message.from_name let what = message.body.split("\n").join("\n> ") return "\n\n" + "On " + when + " " + who + " wrote:\n> " + what + "\n" -- cgit v1.2.3