summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-02 17:17:21 +0100
committerTor Andersson <tor@ccxvii.net>2023-01-31 12:39:03 +0100
commitddc4a5678adb3b0c9baddbed8e265d4b26c8e474 (patch)
tree89e79d51c6ebc9bf10c470f9dd21330cab7a6934 /server.js
parent61fc6ea9dcdcbf5454ad85cae32120c9d5d4c8b4 (diff)
downloadserver-ddc4a5678adb3b0c9baddbed8e265d4b26c8e474.tar.gz
Fix date in message replies.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
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"