From: noreply@... Date: 2006-10-23T14:03:39+09:00 Subject: [ ruby-Patches-6279 ] DateTime doesn't parse timezone correctly Patches item #6279, was opened at 2006-10-23 05:03 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=6279&group_id=426 Category: Ruby1.8 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Kent Sibilev (kent) Assigned to: Nobody (None) Summary: DateTime doesn't parse timezone correctly Initial Comment: $ irb >> require 'date' => true >> d = DateTime.parse "2006-10-21T20:54:30-07:00" => # >> d.to_s => "2006-10-21T20:54:30-06:00" >> # but ?> s = DateTime.now.to_s => "2006-10-23T01:01:42-04:00" >> DateTime.parse(s).to_s => "2006-10-23T01:01:42-04:00" >> RUBY_VERSION => "1.8.5" >> RUBY_PLATFORM => "i686-darwin8.7.1" >> RUBY_RELEASE_DATE => "2006-10-22" ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=6279&group_id=426