FW: Mapping Localised Windows TZ to TZID
Dave Rolsky
autarch at urth.org
Thu Oct 9 22:08:37 UTC 2008
On Thu, 9 Oct 2008, Olson, Arthur David (NIH/NCI) [E] wrote:
> The issue is the only registry entry they have located so far has the
> Windows TZ stored as a text string and this is localised on non English
> Windows. In Windows is there a language [independent] reference for the
> TZ that machine is currently set to that we could utilise?
There is a way around this, but it's highly Windows-release dependent.
For the gory details, I refer you to this code that someone who knows more
about this wrote -
http://search.cpan.org/src/DROLSKY/DateTime-TimeZone-0.81/lib/DateTime/TimeZone/Local/Win32.pm
If you look at the _FindWindowsTZName you can see it going through various
gyrations to get the English name.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/
More information about the tz
mailing list