From ec72aeae385d4c8078817beec099f3fa175a8998 Mon Sep 17 00:00:00 2001 From: Christopher Szu Date: Tue, 30 Aug 2022 11:18:48 +0800 Subject: [PATCH] Add mapping for CDT timezone --- lib/timezonedata/extrazones.php | 1 + tests/VObject/TimeZoneUtilTest.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/timezonedata/extrazones.php b/lib/timezonedata/extrazones.php index 6a76a2a41..b684e9c99 100644 --- a/lib/timezonedata/extrazones.php +++ b/lib/timezonedata/extrazones.php @@ -202,4 +202,5 @@ 'Pacific/Johnston' => 'Pacific/Honolulu', 'EDT' => 'America/Manaus', 'America/Godthab' => 'Atlantic/Stanley', + 'CDT' => 'America/Chicago', ]; diff --git a/tests/VObject/TimeZoneUtilTest.php b/tests/VObject/TimeZoneUtilTest.php index c23dbcf00..fddf3de7e 100644 --- a/tests/VObject/TimeZoneUtilTest.php +++ b/tests/VObject/TimeZoneUtilTest.php @@ -434,6 +434,11 @@ public function unSupportTimezoneProvider(): iterable 'expected' => 'America/Manaus', ]; + yield 'CDT' => [ + 'origin' => 'CDT', + 'expected' => 'America/Chicago', + ]; + if (($handle = fopen(__DIR__ . "/microsoft-timezones-confluence.csv", "r")) !== FALSE) { $data = fgetcsv($handle); while (($data = fgetcsv($handle)) !== FALSE) {