From 475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 21 Mar 2023 16:21:21 +0100 Subject: Updated 26 files and added 1074 files (automated) --- .../composer/vendor/om/icalparser/bin/timezones.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 includes/composer/vendor/om/icalparser/bin/timezones.php (limited to 'includes/composer/vendor/om/icalparser/bin') diff --git a/includes/composer/vendor/om/icalparser/bin/timezones.php b/includes/composer/vendor/om/icalparser/bin/timezones.php new file mode 100644 index 0000000..3bf3708 --- /dev/null +++ b/includes/composer/vendor/om/icalparser/bin/timezones.php @@ -0,0 +1,20 @@ + + * @license http://www.opensource.org/licenses/mit-license.php MIT License + */ +$windows_timezones = []; +$windowstimezonexml = new DOMDocument(); +$windowstimezonexml->load('https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml'); +$zones = $windowstimezonexml->getElementsByTagName('mapZone'); +foreach ($zones as $zone) { + if ($zone->getAttribute('territory') === '001') { + $windows_timezones[$zone->getAttribute('other')] = $zone->getAttribute('type'); + } +} + +file_put_contents(__DIR__ . '/../src/WindowsTimezones.php', "