I need to convert a time zone from olson time zone in windows. Using PHP.
I found this http://unicode.org/repos/cldr/trunk/common/supplemental/windowsZones.xml
It seems that it is not difficult to convert using this data.
But there are questions:
1) Can I trust this source?
2) How parse type with multi values:
<mapZone other="Eastern Standard Time" territory="US" type="America/New_York America/Detroit America/Indiana/Petersburg America/Indiana/Vincennes America/Indiana/Winamac America/Kentucky/Monticello America/Louisville"/>
Divided by space character?
- America/New_York
- America/Detroit
- America/Indiana/Petersburg
- America/Indiana/Vincennes
- America/Indiana/Winamac
- America/Kentucky/Monticello
- America/Louisville
But why some zones have three components?
3) Always there when converting Olson time zone => Windows time zone will receive only 1 timezone or maybe more? And what to do in this case?
4) Are there any pitfalls? For example UTC.