-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
daily file sink - daylight saving time #827
Comments
I can't find a reliable and fast way to handle dst. mktime might fail detecting it, and it is not well defined what to do anyway if the rotation time is same as dst. |
I don't know if this has already been addressed in other issues, but with the addition of C++20's date time functionalities, The only other thing I can think of is bundling a form of Howard's date library with It might take some time to do, especially as I'm still learning my way around programming as a whole, but I would be happy to try to put something together for this if either case sounds like a plausible solution? If not, I totally understand. |
Hello,
it seems like there is a problem with daylight saving time, because the method
spdlog::sinks::daily_file_sink::next_rotation_tp_()
just adds 24 hours on return.Kind regards
Mario
The text was updated successfully, but these errors were encountered: