Displaying 1 result from an estimated 1 matches for "zutc".
Did you mean:
utc
2009 Mar 31
2
TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?
...s 2.3.2)
>> Time.zone
=> #<ActiveSupport::TimeZone:0xb795cbc8 @tzinfo=nil, @utc_offset=0,
@name="UTC">
>> event=Event.find(1)
=> #<Event id: 1, edate: "2009-03-30 12:00:00">
>> event.edate
=> Mon, 30 Mar 2009 16:00:00 UTC +00:00
>> zutc= ActiveSupport::TimeZone.new(''UTC'')
=> #<ActiveSupport::TimeZone:0xb795cbc8
@tzinfo=#<TZInfo::DataTimezone: Etc/UTC>, @utc_offset=0, @name="UTC">
>> correct_time = ActiveSupport::TimeWithZone.new(event.edate.localtime,zutc)
=> Mon, 30 Mar 2009 1...