Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Issue 2691003002: Display "(local time)" label after start/end time of the build (Closed)

Created:
3 years, 10 months ago by Sergiy Byelozyorov
Modified:
3 years, 9 months ago
Reviewers:
hinoka, mithro
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Update expectations #

Patch Set 3 : Addressed comments #

Patch Set 4 : Addressed comments #

Total comments: 4

Patch Set 5 : Addressed comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -10 lines) Patch
M milo/appengine/frontend/static/common/js/time.js View 1 2 3 4 2 chunks +1 line, -10 lines 1 comment Download

Messages

Total messages: 30 (12 generated)
Sergiy Byelozyorov
3 years, 10 months ago (2017-02-13 10:17:23 UTC) #1
hinoka
Actually by default go renders UTC time and uses javascript to convert it to local ...
3 years, 10 months ago (2017-02-13 19:59:30 UTC) #7
hinoka
This would also work poorly if javascript was turned off. It'd display UTC but say ...
3 years, 10 months ago (2017-02-15 21:50:06 UTC) #8
Sergiy Byelozyorov
On 2017/02/15 21:50:06, hinoka wrote: > This would also work poorly if javascript was turned ...
3 years, 10 months ago (2017-02-16 12:13:14 UTC) #9
Sergiy Byelozyorov
On 2017/02/16 12:13:14, Sergiy Byelozyorov wrote: > On 2017/02/15 21:50:06, hinoka wrote: > > This ...
3 years, 10 months ago (2017-02-16 12:13:33 UTC) #10
Sergiy Byelozyorov
gentle ping
3 years, 10 months ago (2017-02-21 14:35:58 UTC) #11
hinoka
Hi, sorry for the delay This change was a little contentious so we sent out ...
3 years, 10 months ago (2017-02-22 17:57:06 UTC) #12
Sergiy Byelozyorov
Did your poll include people from Europe? We like UTC because it's just 1-2 hours ...
3 years, 10 months ago (2017-02-22 19:22:02 UTC) #13
hinoka
1-2 hours is not free either, someone would have to think about if you're on ...
3 years, 10 months ago (2017-02-22 19:26:16 UTC) #14
Sergiy Byelozyorov
On 2017/02/22 19:26:16, hinoka wrote: > 1-2 hours is not free either, someone would have ...
3 years, 9 months ago (2017-02-28 11:47:30 UTC) #15
nodir
On 2017/02/28 11:47:30, Sergiy Byelozyorov wrote: > On 2017/02/22 19:26:16, hinoka wrote: > > 1-2 ...
3 years, 9 months ago (2017-02-28 15:56:22 UTC) #16
Sergiy Byelozyorov
On 2017/02/28 15:56:22, nodir wrote: > On 2017/02/28 11:47:30, Sergiy Byelozyorov wrote: > > On ...
3 years, 9 months ago (2017-02-28 16:12:22 UTC) #17
hinoka
Yes that is what I suggested. We can pursue named timezones (and full timezone support) ...
3 years, 9 months ago (2017-02-28 18:10:41 UTC) #18
Sergiy Byelozyorov
https://codereview.chromium.org/2691003002/diff/60001/milo/appengine/frontend/static/common/js/time.js File milo/appengine/frontend/static/common/js/time.js (right): https://codereview.chromium.org/2691003002/diff/60001/milo/appengine/frontend/static/common/js/time.js#newcode25 milo/appengine/frontend/static/common/js/time.js:25: var offsetSign = ''; On 2017/02/28 18:10:41, hinoka wrote: ...
3 years, 9 months ago (2017-03-01 08:35:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2691003002/80001
3 years, 9 months ago (2017-03-01 08:35:12 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://github.com/luci/luci-go/commit/b517e730515610038aa8ef9c6d9c4ef2c5d4c05c
3 years, 9 months ago (2017-03-01 08:41:11 UTC) #27
mithro
https://codereview.chromium.org/2691003002/diff/80001/milo/appengine/frontend/static/common/js/time.js File milo/appengine/frontend/static/common/js/time.js (right): https://codereview.chromium.org/2691003002/diff/80001/milo/appengine/frontend/static/common/js/time.js#newcode32 milo/appengine/frontend/static/common/js/time.js:32: s += t.toLocaleTimeString() + ' (local time)'; This text ...
3 years, 9 months ago (2017-03-02 06:29:23 UTC) #29
Sergiy Byelozyorov
3 years, 9 months ago (2017-03-02 08:59:29 UTC) #30
Message was sent while issue was closed.
On 2017/03/02 06:29:23, mithro wrote:
>
https://codereview.chromium.org/2691003002/diff/80001/milo/appengine/frontend...
> File milo/appengine/frontend/static/common/js/time.js (right):
> 
>
https://codereview.chromium.org/2691003002/diff/80001/milo/appengine/frontend...
> milo/appengine/frontend/static/common/js/time.js:32: s +=
t.toLocaleTimeString()
> + ' (local time)';
> This text is not useful, who's local time?

IMHO, local time means time used where your computer is located (probably
depends on browser settings).

> Please do something like
> 
> s += t.toLocaleTimeString() + '('+ t.toISOString() + ')'
> 
> Or better yet, just always use the ISO string.

toISOString always returns UTC, e.g. 2017-03-02T08:53:03.105Z, and according to
the survey done by Ryan, this was least popular preference. Although purely
subjective, it seems harder to read because there is no space between date, time
and timezone, and because some people may not be aware that "Z" means Zulu, and
thus Zulu means UTC. Perhaps a better option would be to add actual timezone
abbreviations as Ryan suggested in the comments to this CL. Unfortunately I
don't have time to do this. If this is super-annoying, feel free to revert.

Powered by Google App Engine
This is Rietveld 408576698