-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
date: update deprecated TZ #8405
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
Conversation
GNU testsuite comparison:
|
GNU testsuite comparison:
|
test_tz("Antarctica/South_Pole", JAN2, "2024-01-03 01:00:00 NZDT\n"); | ||
test_tz("Antarctica/South_Pole", JUL2, "2024-07-03 00:00:00 NZST\n"); | ||
test_tz("Pacific/Auckland", JAN2, "2024-01-03 01:00:00 NZDT\n"); | ||
test_tz("Pacific/Auckland", JUL2, "2024-07-03 00:00:00 NZST\n"); |
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.
Why is this a problem? I don't mind either way but I don't see South_Pole as being deprecated? Just duplicate?
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.
On a testing Debian system:
Test with TZ=Antarctica/South_Pole, date="2024-01-02 12:00:00 +0000".
bin: "/home/sylvestre/dev/debian/coreutils/target/debug/coreutils"
run: /home/sylvestre/dev/debian/coreutils/target/debug/coreutils date -d 2024-01-02 12:00:00 +0000 +%Y-%m-%d %H:%M:%S %Z
thread 'test_date::test_date_tz' panicked at tests/by-util/test_date.rs:582:14:
assertion failed: `(left == right)`
Diff < left / right > :
<2024-01-02 12:00:00 UTC
>2024-01-03 01:00:00 NZDT
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.
Oh! Thanks.
@@ -634,7 +634,7 @@ fn test_date_tz_various_formats() { | |||
"-0800 -08:00 -08:00:00 -08 PST\n", | |||
); | |||
// Half-hour timezone | |||
test_tz("Asia/Calcutta", JAN2, "+0530 +05:30 +05:30:00 +05:30 IST\n"); | |||
test_tz("Asia/Kolkata", JAN2, "+0530 +05:30 +05:30:00 +05:30 IST\n"); |
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.
That's a good change though, not sure why I picked the other name.
See:
https://data.iana.org/time-zones/tzdb/backward