avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fix for avr-libc-2.0.0/include/util/eu_dst.h


From: Georg-Johann Lay
Subject: Re: fix for avr-libc-2.0.0/include/util/eu_dst.h
Date: Wed, 30 Oct 2024 18:15:08 +0100
User-agent: Mozilla Thunderbird

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]