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

zero struct tm before calling strptime() #22

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

andy-bower
Copy link
Contributor

This fixes erratic behaviour with options like --until which can cut off the display at different places. Typically this might be +/- one hour. This happens because strptime() only sets fields corresponding to time elements present in the format string.

Without this fix I see the time value that until gets, vary by 3600.

Thanks!

This fixes erratic behaviour with options like --until which can cut off the
display at different places. Typically this might be +/- one hour. This happens
because strptime() only sets fields corresponding to time elements present in
the format string.
@thkukuk thkukuk merged commit c59256b into thkukuk:main Feb 3, 2025
3 checks passed
@thkukuk
Copy link
Owner

thkukuk commented Feb 3, 2025

Thanks

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.

2 participants