Revert "upgrade icalparser from e6a3a285cf6e239236a40153a66b67b940220b43 to cae1631b9496a7415ef960b0dff1cd0f39fe3135"
This reverts commit e2541c84e4
.
This commit is contained in:
parent
b9da2622a4
commit
d48cf5c579
31 changed files with 876 additions and 1328 deletions
19
include/icalparser/tools/windowstimezones.php
Normal file
19
include/icalparser/tools/windowstimezones.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?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 = array();
|
||||
$windowstimezonexml = new DOMDocument();
|
||||
$windowstimezonexml->load('http://unicode.org/cldr/data/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__.'/windows_timezones.php', "<?php\n\$windows_timezones = ".var_export($windows_timezones, true).';');
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue