Skip to content
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

Auto detect if DST in effect for dateyesterday #554

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cgzones
Copy link
Member

@cgzones cgzones commented Oct 19, 2023

Instead of setting the hour unconditionally to 12 (noon), let mktime(3) detect whether DST is in effect at the specific time.

Closes: #551

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
@cgzones
Copy link
Member Author

cgzones commented Oct 19, 2023

Might regress on actual DST changes.
Maybe worth to wait for testing on the 29th (next DST change in Europe).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dateformat %H doesn't work
1 participant