From: noreply@... Date: 2006-05-03T17:26:21+09:00 Subject: [ ruby-Bugs-4345 ] parsedate doesn't work with GMT dates Bugs item #4345, was opened at 2006-05-03 08:26 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4345&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Julian Gall (juliangall) Assigned to: Nobody (None) Summary: parsedate doesn't work with GMT dates Initial Comment: My time zone is GMT in the UK. irb(main):020:0> Time.now => Wed May 03 09:15:32 GMT Standard Time 2006 irb(main):021:0> ParseDate.parsedate(Time.now.to_s) => [nil, 5, 3, 9, 15, 32, "GMT", 3] The parsedate method has not identified the year (2006). If I replace the "GMT Standard Time" with "EDT", the problem goes away. irb(main):024:0> Time.now => Wed May 03 09:17:19 GMT Standard Time 2006 irb(main):025:0> ParseDate.parsedate(Time.now.to_s.sub!( /GMT Standard Time/, "EDT" )) => [2006, 5, 3, 9, 17, 19, "EDT", 3] It looks as though parsedate is perhaps looking for a single word for the time zone. Julian Gall ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4345&group_id=426