Skip to content

Commit 09f4032

Browse files
committed
date: update deprecated TZ
See: https://data.iana.org/time-zones/tzdb/backward
1 parent fb4d611 commit 09f4032

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/by-util/test_date.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ fn test_date_tz() {
601601
test_tz("Australia/Sydney", JAN2, "2024-01-02 23:00:00 AEDT\n");
602602
test_tz("Australia/Sydney", JUL2, "2024-07-02 22:00:00 AEST\n"); // Shifts the other way.
603603
test_tz("Pacific/Tahiti", JAN2, "2024-01-02 02:00:00 -10\n"); // No abbreviation.
604-
test_tz("Antarctica/South_Pole", JAN2, "2024-01-03 01:00:00 NZDT\n");
605-
test_tz("Antarctica/South_Pole", JUL2, "2024-07-03 00:00:00 NZST\n");
604+
test_tz("Pacific/Auckland", JAN2, "2024-01-03 01:00:00 NZDT\n");
605+
test_tz("Pacific/Auckland", JUL2, "2024-07-03 00:00:00 NZST\n");
606606
}
607607

608608
#[test]
@@ -634,7 +634,7 @@ fn test_date_tz_various_formats() {
634634
"-0800 -08:00 -08:00:00 -08 PST\n",
635635
);
636636
// Half-hour timezone
637-
test_tz("Asia/Calcutta", JAN2, "+0530 +05:30 +05:30:00 +05:30 IST\n");
637+
test_tz("Asia/Kolkata", JAN2, "+0530 +05:30 +05:30:00 +05:30 IST\n");
638638
test_tz("Europe/Berlin", JAN2, "+0100 +01:00 +01:00:00 +01 CET\n");
639639
test_tz(
640640
"Australia/Sydney",

0 commit comments

Comments
 (0)