You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we configure Time.zone in our application to something different than UTC, jsonb_accessor does not properly deserialize the timestamp. For example:
Time.zone="America/Los_Angeles"Time.zone.now# => Tue, 23 Aug 2022 15:20:14.000000000 PDT -07:00user=User.new(onboarded_at: Time.zone.now)user.onboarded_at# => Tue, 23 Aug 2022 15:20:14.000000000 PDT -07:00user.save!user.onboarded_at# => Tue, 23 Aug 2022 15:20:14.000000000 PDT -07:00user.reloaduser.onboarded_at# => Tue, 23 Aug 2022 22:20:14.000000000 PDT -07:00
^^^^^^^^^^^^^^^^^^^^^^^^ shiftedby7hoursafterareload
The text was updated successfully, but these errors were encountered:
I notice in the code you respect the configured ActiveRecord::Base.default_timezone, but we're not looking to change the stored zone from UTC, only the in-memory zone the user sees.
When we configure
Time.zone
in our application to something different than UTC,jsonb_accessor
does not properly deserialize the timestamp. For example:The text was updated successfully, but these errors were encountered: