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

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

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


From: pjw
Subject: fix for avr-libc-2.0.0/include/util/eu_dst.h
Date: Wed, 30 Oct 2024 13:18:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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.

Attachment: eu_dst.h.patch
Description: Text Data


reply via email to

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