moved includes and cleaned up paths
This commit is contained in:
parent
1490a96f14
commit
e7525fda56
45 changed files with 15 additions and 10 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