diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-02 17:17:21 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-01-31 12:39:03 +0100 |
commit | ddc4a5678adb3b0c9baddbed8e265d4b26c8e474 (patch) | |
tree | 89e79d51c6ebc9bf10c470f9dd21330cab7a6934 /server.js | |
parent | 61fc6ea9dcdcbf5454ad85cae32120c9d5d4c8b4 (diff) | |
download | server-ddc4a5678adb3b0c9baddbed8e265d4b26c8e474.tar.gz |
Fix date in message replies.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |