-
Notifications
You must be signed in to change notification settings - Fork 103
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
Permit missing /etc/localtime #426
Conversation
We received a report that in some container images, /etc/localtime is left unspecified. According to the Linux documentation (https://www.man7.org/linux/man-pages/man5/localtime.5.html), this means that the UTC time zone must be used. We still throw an exception if we see a time zone we don't recognize.
104af9e
to
98ab7df
Compare
Hello. It still fails on Ubuntu ARM 20.04:
The line is So I must use The '/etc/localtime' file exists (it's not a symlink):
Why the localtime file can be not readable? |
@ArtRoman, it's because
|
@dkhalanskyjb I've checked some of Ubuntu versions. It's a regular file in Ubuntu 20.04 ARM: It's a regular file in Ubuntu 22.04 ARM: But it's a symlink in Ubuntu 24.04 ARM: And it's also a symlink in Ubuntu 24.04 X64: So, it's like a version-specific thing. |
We received a report that in some container images, /etc/localtime is left unspecified.
According to the Linux documentation
(https://www.man7.org/linux/man-pages/man5/localtime.5.html), this means that the UTC time zone must be used.
We still throw an exception if we see a time zone we don't recognize.