Am 30.10.24 um 14:18 schrieb pjw:
Dear All,
I think I have fixed a bug in avr-libc-2.0.0include/util/eu_dst.h where
the summer time was being imposed after summer time had finished, and
vice-versa.
To decipher the code:-
if (month == MARCH) {
if (final_sunday < today)
return 0; /* should be ONE_HOUR */
if (final_sunday > today)
return ONE_HOUR; /* should be 0 */
....
}
/* OCTOBER */
if (final_sunday < today)
return ONE_HOUR; /* should be 0 */
if (final_sunday > today)
return 0; /* should be ONE_HOUR */
...
Cheers,
Peter Welch.
The current AVR-LibC version in v2.2.1.
See for example
https://github.com/avrdudes/avr-libc/issues/956
There was also this change back in 2017:
https://github.com/avrdudes/avr-libc/commit/0b978a5c40bb70a721628f
Johann