-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
timeutil: sort timezones #60704
timeutil: sort timezones #60704
Conversation
Previously, timezones in the generated file were not sorted. That led to the file being changed greatly when Go version was updated, or even within the same Go version when /usr/local/go/lib/time/zoneinfo.zip was regenerated from different time zone releases: https://data.iana.org/time-zones/releases This patch sorts timezones before writing them down so the changes in the file are minimal and only reflect the actual change in the timezones. Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
bors r+
Build failed (retrying...): |
Hi @otan, thanks for the review. |
bors r- |
Canceled. |
Hmm, it seems as if it still passes CI so maybe there are no new timezones in go 1.16? |
CI will automatically check that the generated file in go 1.15 is up to date, so it looks like it is? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see one new release from 2021-01-24. I'll compare the timezones
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I compared timezones in go 1.15 (2020a) and go 1.16 (2021a).
Release notes for the changes can be found here https://mm.icann.org/pipermail/tz-announce/.
You're right, no new timezones added, generated lowercase_timezones
is the same except the order. Sorry about the confusion 🤦
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @otan)
no woz!
Let's go again
bors r+
…On Thu, 18 Feb 2021, 6:08 pm Max Neverov, ***@***.***> wrote:
***@***.**** commented on this pull request.
I compared timezones in go 1.15 (2020a) and go 1.16 (2021a).
Release notes for the changes can be found here
https://mm.icann.org/pipermail/tz-announce/.
You're right, no new timezones added, generated lowercase_timezones is
the same except the order. Sorry about the confusion 🤦
*Reviewable
<https://reviewable.io/reviews/cockroachdb/cockroach/60704#-:-MTnwL4C82oIsNXXtQQS:byfzpy9>*
status: [image: ] complete! 0 of 0 LGTMs obtained (waiting on
@otan <https://github.com/otan>)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60704 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA32FQ6LTQUVP5LNC5OCQX3S7S4HJANCNFSM4XZCBO7A>
.
|
Build succeeded: |
Previously, timezones in the generated file were not sorted. That led to
the file being changed greatly when Go version was updated, or even
within the same Go version when /usr/local/go/lib/time/zoneinfo.zip was
regenerated from different time zone releases:
https://data.iana.org/time-zones/releases
This patch sorts timezones before writing them down so the changes in
the file are minimal and only reflect the actual change in the
timezones.
Release note: None