timeZone issue

hi,

I’m trying to understand why I can not make time_zone working. It
always return the same date whatever time_zone I configured :

Time.zone
=> #<ActiveSupport::TimeZone:0x7fca81c99318 @utc_offset=3600,
@name=“Paris”, @tzinfo=nil>

User.first.silent_mode_at
=> Sat Jan 01 22:00:00 UTC 2000

Time.zone=“Hawaii”
=> “Hawaii”

User.first.silent_mode_at
=> Sat Jan 01 22:00:00 UTC 2000

Should’nt the time change after I setup the Time.zone properly ?

Thank you!

If like me you spend hours trying to figure out why timezone is not
working at all, check if you have a :time column instead of a
:datetime. [email protected]%…

Sorry for the noise.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs