You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/11/26 13:41:26 UTC
[incubator-ponymail-foal] 01/03: Default to local TZ
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit a24acd3b145a5dac9f39eba6b7e99cc6665d0a19
Author: Sebb <se...@apache.org>
AuthorDate: Fri Nov 26 13:40:16 2021 +0000
Default to local TZ
---
webui/js/source/render-email.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webui/js/source/render-email.js b/webui/js/source/render-email.js
index dfa4984..e7117a4 100644
--- a/webui/js/source/render-email.js
+++ b/webui/js/source/render-email.js
@@ -225,7 +225,7 @@ async function render_email_chatty(state, json) {
let when = new Date(json.epoch * 1000.0);
let ldate = when.toISOString();
try {
- ldate = "%s %s".format(when.toLocaleDateString('en-US', PONYMAIL_DATE_FORMAT), when.toLocaleTimeString());
+ ldate = "%s %s".format(when.toLocaleDateString(undefined, PONYMAIL_DATE_FORMAT), when.toLocaleTimeString());
} catch (e) {
}