WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137252
EWS bubble hover shows wrong timestamps
https://bugs.webkit.org/show_bug.cgi?id=137252
Summary
EWS bubble hover shows wrong timestamps
Csaba Osztrogonác
Reported
2014-09-30 06:56:40 PDT
Created
attachment 238924
[details]
snapshot for example in
bug137244
attachment date: 2014-09-30 06:16 PST --> 15:16 in CEST (GMT+2) But the style checker (and the others too) bubble says it finished the patch at 13:18:18 GMT+2, 2 hours before submitting the patch.
Attachments
snapshot
(48.41 KB, image/jpeg)
2014-09-30 06:56 PDT
,
Csaba Osztrogonác
no flags
Details
Patch
(1.38 KB, patch)
2014-09-30 08:31 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Patch for landing
(2.32 KB, patch)
2014-10-06 06:52 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2014-09-30 07:21:34 PDT
I ran into this bug with latest Firefox, but the time seems to be valid with Safari and Chrome. The problem is that the time is converted to local time with this JS code: new Date("2014-09-30T13:18:18.902015").toString() But the trailing "Z" or "+00:00" is missing to indicate that the time is in UTC/GMT. Can we add "Z" to the datetime string somehow?
Csaba Osztrogonác
Comment 2
2014-09-30 08:04:46 PDT
ECMA 262 stated clearly in "15.9.1.15 Date Time String Format" the following: The value of an absent time zone offset is “Z”. So it is an ugly bug in FF and IE too. :-/ But why not add the trailing "Z" if we can make the bad boys happy too.
Csaba Osztrogonác
Comment 3
2014-09-30 08:08:10 PDT
(In reply to
comment #2
)
> ECMA 262 stated clearly in "15.9.1.15 Date Time String Format" the following: > The value of an absent time zone offset is “Z”. > > So it is an ugly bug in FF and IE too. :-/ > > But why not add the trailing "Z" if we can make the bad boys happy too.
But the ES6 will change the behaviour: "If the time zone offset is absent, the date-time is interpreted as a local time." So +1 to use "Z", because this time is in UTC and it will work with ES5 and ES6 too.
Csaba Osztrogonác
Comment 4
2014-09-30 08:31:29 PDT
Created
attachment 238926
[details]
Patch
Alexey Proskuryakov
Comment 5
2014-09-30 10:08:37 PDT
Comment on
attachment 238926
[details]
Patch Looks like this is not the most pythonic way to fix this - the right one is to use pytz package and replace(tzinfo=simple_utc()). But this is simpler and faster, so why not. Please make the same change in queuestatusjson.py before landing. Ping me when landed, so that I could deploy.
Alexey Proskuryakov
Comment 6
2014-10-04 16:58:45 PDT
Ossy, will you have a chance to look into this further?
Csaba Osztrogonác
Comment 7
2014-10-06 06:52:30 PDT
Created
attachment 239336
[details]
Patch for landing
WebKit Commit Bot
Comment 8
2014-10-06 07:35:04 PDT
Comment on
attachment 239336
[details]
Patch for landing Clearing flags on attachment: 239336 Committed
r174343
: <
http://trac.webkit.org/changeset/174343
>
WebKit Commit Bot
Comment 9
2014-10-06 07:35:08 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 10
2014-10-06 09:16:50 PDT
Deployed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug