This is a really weird Rails problem - I have googled to see if this is related to a known bug, but haven't found anything - would be gratfeul for useful links as well as solutions.
I can boil the problem down to this:
If I start up my Rails App, and execute the following Rails code via an HTTP request.
Time.zone = 'Europe/London'
logger.info Time.zone.inspect
The log show this as the timezone
#<ActiveSupport::TimeZone:0x3d7438c @tzinfo=nil, @name="UTC", @utc_offset=0>
On the very next request (and most subsequent requests), the log for the same lines of code shows this
#<ActiveSupport::TimeZone:0x46cc100 @tzinfo=#<TZInfo::DataTimezone: Europe/London>, @name="Europe/London", @utc_offset=nil>
Anyone know what the hell is going on?
(I'm running Rails 2.3.2 if it helps)
Edit: It appears that Rails 2.2.2 doesn't have this problem, so I will revert to that for now.