Follow-up Comment #1, bug #46303 (project avr-libc):

I think the bug is not fixed. eu_dst() tells me that DST does not apply on
2015-10-24 01:00:00 UTC. But it should.

From eu_dst() :

    /* determine mday of last Sunday */
    n = tmptr.tm_mday - 1;
    n -= day_of_week;
    n += 7;
    d = n % 7;  /* date of first Sunday */

    n = 31 - d;
    n /= 7; /* number of Sundays left in the month */

    d = d + 7 * n;  /* mday of final Sunday */

If we try with tmptr.tm_mday == 25 and day_of_week == 0 (for October 25th,
which is the last Sunday of October in 2015), then we get d == 31. Which is
actually the last Saturday of October.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?46303>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to