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"
=> #<DateTime: 7067608309/2880,-7/24,2299161>
>> 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