Timezone list should contain recent and future rules
Categories
(Calendar :: Internal Components, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
Details
Attachments
(2 files, 4 obsolete files)
245.88 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
42.85 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
We'd be shipping the latest information about current and past timezones (i.e. with mistakes hopefully corrected), not the latest and previous versions of the information.
I guess if we shipped faulty information that could result in events changing time when the fault gets corrected, since we generally only record the timezone ID of an event. But that's already the case.
Does that answer your question, or am I misunderstanding?
Assignee | ||
Comment 6•6 years ago
|
||
I need to update the zones information again with this code, so I'll do that and get it checked. NI'ing myself so I remember.
Comment 7•6 years ago
|
||
Yes, that answers my question. Thanks!
Assignee | ||
Comment 8•6 years ago
|
||
I want to add a part zero to this, because checking changes make my brain explode. I propose here to store each STANDARD/DAYLIGHT component on a separate line of the JSON file (i.e. in an array of strings, not one big long string) for easier reading.
Assignee | ||
Comment 9•6 years ago
|
||
This is just a minor update to the earlier patch, and I've taken the actual zone changes out of it.
Assignee | ||
Comment 10•6 years ago
|
||
And these are the actual changes, still at 2018i although there is a 2019a. It should be much easier to review now. I think I've done the right thing about bug 1515937.
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
I'm unhappy with this, so I haven't shipped it. There's definitely some bad data produced, although we already had some bad data. Casablanca, for example, has daylight savings time but we don't list it. I bet we don't have many Moroccan users, but if we can't get the timezone right we'll have even fewer.
Assignee | ||
Comment 13•6 years ago
|
||
Assignee | ||
Comment 14•6 years ago
•
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Okay, finally I think I have this right.
I've included the changes this patch would introduce for the years 2018-2022, which actually doesn't include the America/Caracas changes that the tests rely on. I'm not sure if we should go back that far, but if we do it will be easier to review as a second change.
I also haven't updated to version 2019a in this patch.
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Are we not including Etc zones?
We didn't include them before. I changed to a newer version of vzic, and I think that's what caused them to appear in the list.
Comment 18•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/116e52b10f8f
Store timezone components in an array of strings, not one long string; r=Fallen
https://hg.mozilla.org/comm-central/rev/8c2e0c1e7756
Modify timezone update script so that zones.json can contain recent and future rules; r=Fallen
Assignee | ||
Comment 19•6 years ago
|
||
I ended up pushing this without the tests that rely on America/Caracas changing in 2016. I did however, add a test for America/Sao_Paulo.
Description
•