-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix touch timezone calculation #4309
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
Conversation
7cc7853
to
ee23fe7
Compare
Could you please add a test to make sure it doesn't regress? |
looks like there were some test failures in the CI; I've restarted it and copied the failures I saw here:
|
3562dd6
to
e2d898e
Compare
Hmm... Perhaps the |
We should probably add some function in the test utils that sets an environment variable for the subcommand to make this easier without messing up the env variables. |
GNU testsuite comparison:
|
1bf597b
to
e31d71d
Compare
to_local assumed that the timezone offset at the specified time would match the current timezone. This is not the case if the current locale adheres to e.g. daylight savings time. Fixes uutils#4236
e31d71d
to
8687497
Compare
@ctsk i noticed that you have closed this PR and #4316 (comment) |
The timezone offset calculation didn't take into account that some locales change their UTC offset throughout the year (like due to daylight savings time). This change fixes.
Fixes #4236