-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.5.26 has massively reduced the data range #768
Comments
The smaller size of the data files in 2019b is expected, see the "Changes in code" section in the announcement: http://mm.icann.org/pipermail/tz-announce/2019-July/000056.html There used to be extra data that didn't contain any new information, they were needed only to workaround bugs in various older software. But there is indeed some information missing in A few winter/summer dates formatted in
The same dates formatted with version 0.5.26:
Relevant content of the canonical tzdata file:
|
As it also says in those notes, that only applies if you manually compile the data files with Regardless, large scale changes to data ranges due to a compilation process should be mentioned in release notes and versioned as a breaking change. All this makes me think the changes are unintentional. |
Why aren't the maintainers looking into this? I'm really worried about the sudden size drop too. I'm going to pass updating this package for now. Edit: gilmoreorless has explained the actual problem and what is going on internally. I just want to bring more attention to the issue. |
This looks to be the inverse problem of #697, which noted a big increase in size with release 0.5.23. Quoting @mj1856's response:
This reinforces my belief that the change in release 0.5.26 is due to differing |
@HNDeploys @ellenaua Sorry to be a pain, but the broken release was over a month ago and there's been no response (or indeed any activity in the repository) since then. (I'm pinging you directly purely because you're listed on the release commit.) |
Will check it today. Sorry for the delay |
I may have a related issue. In
In
|
I'm observing the same behavior starting in 0.5.26:
With moment-timezone 0.5.25 (tzdata 2019a)
With moment-timezone 0.5.26 (tzdata 2019b)
I originally noticed and reported this for the downstream project js-joda that uses time zone data from moment-timezone. I would also like to point out that java.time is outputting the time zones correctly for 2038 and beyond. Java 8u231 updated using TZUpdater with tzdata 2019c:
And this is the output:
|
The tests broke due to changes in the source data files: moment/moment-timezone#768 Ideally the data should be restored, but I'll change the tests for now to stop being blocked on it.
The tests broke due to changes in the source data files: moment/moment-timezone#768 Ideally the data should be restored, but I'll change the tests for now to stop being blocked on it.
Honestly I'm worried about the lack of attention to this... it's causing troubles for several people (see #798) |
Yes, this is preventing me from upgrading to more recent versions since my application deals with dates well into the future. The off by one hour issue causes my tests to fail. |
Hey, sorry guys for breaking up your flow. Apparently we didn't know either, but it was caused by Mac/Linux differences for different maintainers. Check #999 Ideally we should move to rule-based data, so this crap doesn't happen. Can you please share your use case (in #999) about why you need timezoned data past 2047, just curious :) Closing in favor of #999. BTW 0.5.37 was released on linux so the range is back up :) |
The tests broke due to changes in the source data files: moment/moment-timezone#768 Ideally the data should be restored, but I'll change the tests for now to stop being blocked on it.
My moment-timezone webpack plugin has a failing build when using version 0.5.26. After some investigation it seems the range of years in the compiled data has shrunk considerably from 0.5.25.
Compare the packed data files for 2019a and 2019b. The file size has reduced by around 80%, and a quick switch between the two files shows that the count of abbreviations and offset has significantly changed for many zones.
Picking an example at random:
To see the impact of this, I wrote a quick script to log out the extremes of a particular zone, based on the packed data files:
The result of running this script in the root of the
moment-timezone
repo is as follows:I don't think this is intended behaviour, and I suspect it might have something to do with differences in
zdump
on different machines (as the release commit had to change thezdump
usage).The text was updated successfully, but these errors were encountered: