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

Read time_zone.name instead of time_zone #2250

Closed
wants to merge 1 commit into from

Conversation

pravi
Copy link

@pravi pravi commented Feb 18, 2024

Description

Without adding time_zone.name, the returned value is considered invalid by tzdata.

Closes: #2249

@pravi pravi marked this pull request as draft February 18, 2024 14:39
@pravi
Copy link
Author

pravi commented Feb 18, 2024

Not that simple, will try a different fix.

@pravi
Copy link
Author

pravi commented Feb 18, 2024

This looks like a bug in gitlab now, as https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/initializers/time_zone.rb?ref_type=heads sets

Rails.application.config.time_zone = Time.zone

puts Time.zone
(GMT+00:00) UTC

Which is not a valid identifier.

@sl0thentr0py
Copy link
Member

im closing this, please reopen if necessary

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