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
tests fail around DST #569
Comments
Can you re-test with the recent commit b2271cf? |
Thanks @cgzones for pointing me to this change. |
Using a local timezone with DST might result in a date returned twice, see logrotate#569.
The duplicate test log with the same date is resolved with #572. Changing the timezone handling inside logrotate (from local to UTC (i.e. localtime_r(3) to gmtime_r(3)) might need a deeper review. There seems to be hardly any bug reports around this topic. |
Using a local timezone with DST might result in a date returned twice, see #569.
When logrotate testsuite is started around midnight, shortly after DST switch day some tests are failing because test environment is not generated correctly. We saw this problem with test #54 and #56.
Example reproducer based on
test-0054.sh
:When this is ran in a timezone with DST it prints:
Note that it prints
test.log-2023-11-05
twice and ands on 2023-09-30 not 2023-09-29 as expected.When first line with
TZ=UTC
(there is not DST in UTC) enabled, the result is correct.I didn't do any deeper analysis of how should
logrotate
itself behave around DST but the test is clearly not behaving as expected.The text was updated successfully, but these errors were encountered: