Skip to content
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

Preserve timestamp when setting an ActiveSupport::TimeWithZone value to timestamptz attribute #48347

Merged

Conversation

fatkodima
Copy link
Member

Fixes #48346.

The regression was introduced in #45285, while trying to fix another issue.
I returned back original condition https://github.com/rails/rails/pull/45285/files#diff-c6072f5254f1d8f3ba21a2b028367140e67974ed9e8616117ba6821df0cacdc2L16 from.

@guilleiguaran guilleiguaran merged commit 92946ed into rails:main May 31, 2023
9 checks passed
rafaelfranca pushed a commit that referenced this pull request Jun 2, 2023
…to-timestamptz

Preserve timestamp when setting an `ActiveSupport::TimeWithZone` value to `timestamptz` attribute
@stex
Copy link

stex commented Jun 28, 2023

Is there a plan when this will be added to a new Rails release?
It's currently still breaking our production app, so I have to stay at 7.0.4.3

@skipkayhil
Copy link
Member

It'll be released in 7.0.6. In the meantime you can point your Gemfile at the 7-0-stable branch to get the fix immediately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting a postgres timestamptz attribute sets the value's timezone to UTC
4 participants