[TZInfo-users] "can't modify frozen object"

Philip Ross phil.ross at gmail.com
Wed Jan 23 15:21:17 EST 2008

On 23/01/2008, Siva Jagadeesan <siva at yewoh.com> wrote:
> Hi all
> At yewoh.com , we keep randomly getting "can't modify frozen object" error.
> Any idea?

Hi Siva,

It's a bit difficult to work out what is going on from just that error
message alone. It may not be anything to do with TZInfo. If you've got
a stack trace for the error in your logs, it should tell you what is
causing the problems.

TZInfo does use the freeze method to protect some of the arrays that
are returned. If you are accessing these methods and then attempting
to modify the results, then this may be the cause of the problem.



Phil Ross
http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby

More information about the TZInfo-users mailing list