On 23/01/2008, Siva Jagadeesan <[EMAIL PROTECTED]> wrote: > Thanks Phil for replying. > > We are using tzinfo_timezone plugin for changing dates before displaying or > storing it the database. > > The exception is happening in that plugin. I am not sure what is happening. > Has anybody else have come across this problem?
Hi Siva, Yes, I agree - it looks like the exception is being raised in the tzinfo_timezone plugin. It also looks like you are not alone in experiencing the problem (http://google.com/search?q=tzinfo_timezone+%22can%27t+modify+frozen+object%22), but no one seems to have posted a solution yet. Your call to post.created_at is returning you a TzTime object which contains a TzinfoTimezone instance. It looks like this instance has become frozen, causing the TzinfoTimezone#tzinfo method to raise an exception on line 215 running the following: @tzinfo = MAPPING[name]) I'm not sure what would have caused the TzinfoTimezone instance to become frozen though. Perhaps you could modify tzinfo_timezone.rb, overriding the freeze method to try and determine what is calling freeze in the first place? Regards, Phil -- Phil Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby _______________________________________________ TZInfo-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/tzinfo-users
