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
Dateformat %H doesn't work #551
Comments
Instead of setting the hour unconditionally to 12 (noon), let mktime(3) detect whether DST is in effect at the specific time. Closes: logrotate#551
Since you rotate hourly, you shouldn't use Otherwise #554 removes the hardcoded noon time. |
Thank you. I removed dateyesterday and it works. I see why the hour was set to 12. I don't actually want to rotate every hour, but sometimes certain logs grow quickly and I want to rotate them early (max size). After reading the dst issue, I decided to set TZ=UTC-0 which should not use DST. Am I right in thinking this? |
I am using logrotate-3.21.0 on Gentoo Linux AMD64.
The problem i am experiencing is that the
hour
is always12
, no matter when logrotate runs. This is evident if we look at the timestamps from ls:My logrotate.conf:
/etc/logrotate.d/bees
Logrotate is run via /etc/cron.hourly/logrotate
The text was updated successfully, but these errors were encountered: