upgrade icalparser from e6a3a285cf6e239236a40153a66b67b940220b43 to cae1631b9496a7415ef960b0dff1cd0f39fe3135
This commit is contained in:
parent
2395e88e36
commit
e2541c84e4
31 changed files with 1329 additions and 877 deletions
|
@ -1,19 +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 = 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