-
Notifications
You must be signed in to change notification settings - Fork 68
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
Daylight savings issue #24
Comments
For a quick reference. mktime can and does modify the input to your tm2time function. This is just broken. Before using mktime or localtime_s you need to make a copy as these functions can and do screw up your calculations. localtime is allocated statically and mktime as per: |
I can't reproduce this. When I run your code, |
That's because in the US the DST occurred on March 13, but only on March 27 in Romania. |
setenv("TZ", "CET-1CEST,M3.5.0,M10.5.0/3", 1); |
This can be solved by moving each |
Hello i encountered the same issue with the last daylight saving time in France which occurred the 31 march 2024.
the date.tm_isdst = -1; trick solve the issue |
There is definitely a problem with this code having to do with daylight savings transition. Simple example
"now" and "next" come out identical. Expectation is next would be a day ahead. Works the rest of the year
The text was updated successfully, but these errors were encountered: