DateTime.parse error on win32 (long timezone names)

This is a well known bug. Please see for the easiest way to "fix"
this (and other details).



This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.


-----Original Message-----
[] On Behalf Of Will Rogers
Sent: Wednesday, July 05, 2006 12:47 PM
To: ruby-talk ML
Subject: DateTime.parse error on win32 (long timezone names)

NOTE: this is a cross-post from comp.lang.ruby, because I don't think
anyone read that message, which I posted about two months ago.

The date parsing code in the Ruby stdlib (date/format.rb)
does not parse
strings with long timezones, e.g. "Eastern Daylight Time", as
opposed to
the abbreviated "EDT". On win32, Time#to_s produces a string
with the
long timezone name. So, Time.parse( assumes
the current
year, and DateTime.parse( throws an error.

This is a critical issue for me because it is causing crashes in a
production Rails application during XML serialization in