-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
feat: respect /etc/timezone
, /etc/localtime
, TZ
like ls
and exa
does
#653
Comments
/etc/timezone
Eza should also be able to read from the TZ variable like Firefox for example does. Example usage for /etc/localtime zdump /etc/localtime freedesktop referenceNote This is a systemd thing so maybe we want non systemd support https://www.freedesktop.org/software/systemd/man/latest/localtime.html |
On Ubuntu there are both
In macOS Sonoma ( |
/etc/timezone
/etc/timezone
, /etc/localtime
, TZ
like ls
and exa
does
Interestingly for me on eza
|
Can you try with: touch -d "2023-02-04 10:35:00" bar
touch -d "2023-06-04 10:35:00" baz
touch -d "2023-11-12 10:35:00" foo
TZ=Europe/Berlin eza -aglF --time-style full-iso bar baz foo |
Can reproduce. |
The issue at hand here, seems to be that |
When a file was created under a daylight saving time, and when the computer rendering that timestamp wasn't the incorrect timestamp was shown. This fixes issue eza-community#653.
When a file timestamp is updated under daylight saving time, and displayed when it is not, the wrong time offset is displayed (and vice versa). Fixes issue eza-community#653.
When a file timestamp is updated under daylight saving time, and displayed when it is not, the wrong time offset is displayed (and vice versa). Fixes issue eza-community#653.
I think this is similar to the issue I am having:
|
Being used to the
ls
output and having usedexa
which reproduced it (in my opinion) correctly, I believe there is a bug in theeza
output.In the examples below you can see how the modification date of the
baz
file is shown differently ineza
, as if it did not take into account the daylight savings time changes during the year.The time that is shown is not incorrect, it is simply shown in the current timezone (
UTC+1
) instead of taking into account the time changes present in the selected timezone (Europe/Rome
in this case).The text was updated successfully, but these errors were encountered: