This project is archived and is in readonly mode.

#4881 ✓resolved
Aaron Patterson

ActiveSupport::TimeWithZone#period raises an exception when using a nil timezone

Reported by Aaron Patterson | June 17th, 2010 @ 12:44 AM | in 3.x

Sometimes can return a nil. When a ActiveSupport::TimeWithZone is created with a nil timezone, the period method raises an exception.

I've attached a patch with a test and potential fix.

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=""></a>


Referenced by