From: "drbrain (Eric Hodel)" Date: 2012-08-18T03:24:59+09:00 Subject: [ruby-core:47234] [ruby-trunk - Bug #6887][Rejected] Time.zone.now returning different timezone that Time.zone.at Issue #6887 has been updated by drbrain (Eric Hodel). Status changed from Open to Rejected Brazil uses daylight savings time. Jan 1 is in standard time, Aug 17th is in daylight savings time: http://www.timeanddate.com/worldclock/timezone.html?n=45 ---------------------------------------- Bug #6887: Time.zone.now returning different timezone that Time.zone.at https://bugs.ruby-lang.org/issues/6887#change-28922 Author: anthfb (Anthony Figueroa) Status: Rejected Priority: Normal Assignee: Category: Target version: 1.9.2 ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] 1.9.2p290 :018 > Time.zone = 'Brasilia' => "Brasilia" 1.9.2p290 :020 > Time.zone.now => Fri, 17 Aug 2012 13:08:06 BRT -03:00 1.9.2p290 :021 > Event.last.start_time => 2000-01-01 03:45:00 UTC 1.9.2p290 :022 > Time.zone.at(event.start_time) => Sat, 01 Jan 2000 01:45:00 BRST -02:00 Why is this happening? Is it a bug? -- http://bugs.ruby-lang.org/