search for: datatimezone

Displaying 3 results from an estimated 3 matches for "datatimezone".

2009 Mar 31
2
TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?
...; >> 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 12:00:00 UTC +00:00 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Go...
2009 Mar 13
1
TZInfo included in Rails 2.2.2 vs. version on RubyForge
...including, for example, ''America/ Anchorage'': irb(main):001:0> require ''rubygems'' => false irb(main):002:0> require ''tzinfo'' => true irb(main):003:0> TZInfo::Timezone.get(''America/Anchorage'') => #<TZInfo::DataTimezone: America/Anchorage> Within Rails 2.2, however, which appears to have the same version of the gem (see the error that follows), the set of timezones is far more limited. irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''active_support'...
2008 Sep 22
8
TimeZone daylight savings time problems
Here is the following from my console: >> Time.now => Mon Sep 22 11:33:34 +0200 2008 >> Time.now.utc_offset => 7200 >> TimeZone[Time.now.utc_offset] => #<TimeZone:0x11aea90 @tzinfo=nil, @utc_offset=7200, @name="Athens"> >> Time.now.in_time_zone(TimeZone[Time.now.utc_offset]) => Mon, 22 Sep 2008 12:34:22 EEST +03:00 (I am in Spain - CET - and