Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#4881

Sometimes ::Time.zone 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.

Reported by Aaron Patterson · June 17th, 2010 @ 12:44 AM

State: resolved
Milestone: 3.x
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low