This project is archived and is in readonly mode.

#6573 open
Marc-André Lafortune

TimeWithZone should not accept unrecognized time zones

Reported by Marc-André Lafortune | March 14th, 2011 @ 02:53 PM

Currently, the following doesn't raise any error:

t ="There is no such timezone"); t.utc

Many other methods of TimeWithZone will raise a NoMethodError as soon as they try to access the timezone (e.g. t.inspect).

It should not be possible to create a TimeWithZone with an invalid timezone.

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>