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

Bad tzinfo_tz values in production databases #569

Closed
atruskie opened this issue Apr 6, 2022 · 0 comments
Closed

Bad tzinfo_tz values in production databases #569

atruskie opened this issue Apr 6, 2022 · 0 comments

Comments

@atruskie
Copy link
Member

atruskie commented Apr 6, 2022

Due to a historical mistake we used to store different formats of timezone identifier (a 'friendly' version and sometimes the tzinfo database version). This was partially rectified by #270 but the approach there was to resolve the value to a consistent format whenever it was pulled.

Only after a save was the updated value persisted.

Unfortunately, we're now using the tzinfo_tz column in queries. Postgres itself recognizes the tzinfo identifiers but not the so called 'friendly' Rails identifiers.

We need to proactively clean out the old values in our production databases.

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

No branches or pull requests

1 participant