From 879050c98e1d2cc18f522a16d5b0cb2b82232dca Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 24 Mar 2020 13:26:07 -0400 Subject: Try to clarify gathering times - Show user-local date time string on gathering page, alongside UTC timestamp and TZ string - Include TZ in about message - Align table headings to be more readable --- lib/serve.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index d780024..2beafc4 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1293,6 +1293,7 @@ Serve.prototype.gathering = function (url) { var sources = about._sources || {} var start = about.startDateTime var img = about.imageLink + var startDate = start && new Date(start.epoch) pull( ph('section', [ ph('h2', ['Gathering ', hashLink(id)]), @@ -1322,11 +1323,12 @@ Serve.prototype.gathering = function (url) { ph('th', 'Start time'), ph('td', sources.startDateTime.map(hashLink)), ph('td', [ - ph('code', u.escapeHTML(new Date(start.epoch).toISOString().replace(/ .*/, ''))), + ph('code', u.escapeHTML(startDate.toISOString().replace(/ .*/, ''))), start.tz ? [ - ' ', + '
', ph('code', u.escapeHTML(start.tz)) - ] : '' + ] : '', + ph('div', u.escapeHTML(startDate.toString())) ]) ]) : '', about.description ? ph('tr', [ -- cgit v1.2.3