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 b9bc8401ebd80fe0172f55c437038486635a31aa Author: Sebb <[email protected]> AuthorDate: Fri Nov 26 13:55:22 2021 +0000 Regen JS --- webui/js/ponymail.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index 9b91df8..711cb6e 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -16,7 +16,7 @@ */ // THIS IS AN AUTOMATICALLY COMBINED FILE. PLEASE EDIT THE source/ FILES! -const PONYMAIL_REVISION = "a24acd3"; +const PONYMAIL_REVISION = "5836133"; @@ -66,12 +66,15 @@ const CALENDAR_YEARS_SHOWN = 4; // TODO: should this be configurable? // datepicker const DAYS_SHORTENED = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] +// render_email_chatty const PONYMAIL_DATE_FORMAT = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; +const PONYMAIL_TIME_FORMAT = { timeStyle: 'long'}; // ensure TZ is shown + let G_collated_json = {}; if (pm_config.G_apiURL) { @@ -3781,7 +3784,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(undefined, PONYMAIL_DATE_FORMAT), when.toLocaleTimeString()); + ldate = "%s %s".format(when.toLocaleDateString(undefined, PONYMAIL_DATE_FORMAT), when.toLocaleTimeString(undefined, PONYMAIL_TIME_FORMAT)); } catch (e) { }
