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

Improve error handling for load_localtime on unix #10654

Merged

Conversation

straight-shoota
Copy link
Member

Adds checks that /etc/localtime is actually a file and readable, and ignores errors caused by invalid file format.

Resolves #10651

Adds checks that /etc/localtime is actually a file and readable,
and ignores errors caused by invalid file format.
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @straight-shoota 🙏

@straight-shoota straight-shoota added this to the 1.1.0 milestone Apr 23, 2021
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@straight-shoota straight-shoota merged commit 6995658 into crystal-lang:master May 25, 2021
@straight-shoota straight-shoota deleted the fix/time-local-load branch May 25, 2021 12:23
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.

TZ and /etc/localtime assumptions
5 participants