diff options
author | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
commit | 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch) | |
tree | 75be5fba4368472fb11c8015aee026b2b9a71888 /includes/ical/bin/timezones.php | |
parent | 8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff) | |
download | pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2 pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip |
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'includes/ical/bin/timezones.php')
-rw-r--r-- | includes/ical/bin/timezones.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/includes/ical/bin/timezones.php b/includes/ical/bin/timezones.php deleted file mode 100644 index 3bf3708..0000000 --- a/includes/ical/bin/timezones.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -/** - * This file generates a map from windows timezones to tz database timezones - * - * @author Clement Wong <cw@clement.hk> - * @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', "<?php\n\$windows_timezones = " . var_export($windows_timezones, true) . ';'); - |