Dealing with TZ parsing (on Windows)

May 03, 2006 14:05

Tired of dealing with the fact that Ruby's ParseDate class doesn't handle long time zone names properly, I finally went in and edited my registry. For those who care, here's the base key:

HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/TimeZoneInformation

There change the StandardName and DaylightName keys. Note that you'll need to reboot.

Technically, this is not a Windows issue. Your *nix box could be set to return long time zone names as well, but most aren't. I think the default behavior for most systems depends on how the system was configured during installation. On Solaris, it looks like the time zone stuff is set under /usr/lib/share/zoneinfo. I wouldn't know how to change it, though, without further research. Not that I'd want to.

Anyway, hope that helps some future Googler.

ruby, windows

Previous post Next post
Up