-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support Android's system timezone database #13666
Support Android's system timezone database #13666
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering about the name android_tzdata
. Is that a coined term?
else | ||
File.open(path) do |file| | ||
read_android_tzdata(file, false) do |location_name, location| | ||
@@location_cache[location_name] = {time: mtime, location: location} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the modification time cached per location entry? They're all loaded from the same file, so shouldn't it be a global property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it is easier to reuse the same cache mechanism as the individual zoneinfo files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Let's do it that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking abou this, we might want to refactor the cache anyway.
I don't think |
Alpine is failing on CircleCI only: https://app.circleci.com/pipelines/github/crystal-lang/crystal/12717/workflows/a946e1d2-c96a-4932-a576-797b901df585/jobs/77669 EDIT: Another one https://github.com/crystal-lang/crystal/actions/runs/5684659479/job/15407860869?pr=13710 |
Resolves #13651.