This project is archived and is in readonly mode.

#5344 ✓committed
John Firebaugh

#localtime fails for TimeWithZone-wrapped DateTimes

Reported by John Firebaugh | August 10th, 2010 @ 01:13 AM | in 3.0.2

Simple test case:

DateTime.now.in_time_zone.localtime
# => NoMethodError: undefined method `getlocal' for Mon, 09 Aug 2010 23:59:31 +0000:DateTime
         from /Users/jfire/.rvm/gems/jruby-1.5.1/gems/activesupport-3.0.0.rc/lib/active_support/time_with_zone.rb:75:in `localtime'
         from (irb):25

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages