From: "Berger, Daniel" Date: 2006-08-12T04:02:31+09:00 Subject: Re: ParseDate.parsedate() and Time.now() > -----Original Message----- > From: Ken Bloom [mailto:kbloom@gmail.com] > Sent: Friday, August 11, 2006 12:55 PM > To: ruby-talk ML > Subject: Re: ParseDate.parsedate() and Time.now() > > > On Sat, 12 Aug 2006 01:10:58 +0900, Patrick Spence wrote: > > > irb(main):029:0> timeNow = Time.now().to_s() > > => "Fri Aug 11 11:03:36 Central Daylight Time 2006" > > > > irb(main):030:0> ParseDate.parsedate(timeNow) > > => [nil, 8, 11, 11, 3, 36, "Central", 5] > > > > Seems to me that it should return this: > > => [2006, 8, 11, 11, 3, 36, "Central", 5] > > > > Or is it just me? > > It's you. Specifically, something's wrong with your locale, > because "Central Daylight Time" should actually be replaced > with the abbreviation "CDT". Should? No. It's up to your OS (and how it was configured when it was installed). I think we can fix this in Ruby itself ultimately. Regards, Dan 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.