-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL: Ensure the database time zone matches Ruby's time zone #28391
Conversation
d0d8f30
to
a35cb92
Compare
Since |
If But if The database time zone should match Ruby's time zone to avoid the issue. |
a35cb92
to
7fb7f6c
Compare
7fb7f6c
to
aa4cd56
Compare
aa4cd56
to
ea70fda
Compare
Follow up of rails#23553. Related rails#28391. If `AR::Base.default_timezone = :local`, incorrect value will be saved unless the database time zone matches Ruby's time zone.
Couple of doubts:
|
ea70fda
to
f19295b
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This restores bf6661c (reverts 7a7c608).
If
AR::Base.default_timezone = :local
, incorrect value will be savedunless the database time zone matches Ruby's time zone.