Index: ChangeLog =================================================================== RCS file: /cvs/src/src/newlib/ChangeLog,v retrieving revision 1.1201 diff -u -p -r1.1201 ChangeLog --- ChangeLog 2 Oct 2008 20:12:34 -0000 1.1201 +++ ChangeLog 6 Oct 2008 17:53:36 -0000 @@ -1,3 +1,8 @@ +2008-10-06 Craig Howland + + * libc/time/tzset_r.c (_tzset_r): Change US default start/end dates to + 2007 law revision of start in 2nd Sunday in March, end 1st Sun in Nov. + 2008-10-02 Jeff Johnston * libc/string/str-two-way.h (critical_factorization): Cast the index Index: libc/time/tzset_r.c =================================================================== RCS file: /cvs/src/src/newlib/libc/time/tzset_r.c,v retrieving revision 1.9 diff -u -p -r1.9 tzset_r.c --- libc/time/tzset_r.c 15 Nov 2006 20:10:25 -0000 1.9 +++ libc/time/tzset_r.c 6 Oct 2008 17:53:36 -0000 @@ -147,20 +147,22 @@ _DEFUN (_tzset_r, (reent_ptr), d = strtoul (tzenv, &end, 10); /* if unspecified, default to US settings */ + /* From 1987-2006, US was M4.1.0,M10.5.0, but starting in 2007 is + * M3.2.0,M11.1.0 (2nd Sunday March through 1st Sunday November) */ if (end == tzenv) { if (i == 0) { tz->__tzrule[0].ch = 'M'; - tz->__tzrule[0].m = 4; - tz->__tzrule[0].n = 1; + tz->__tzrule[0].m = 3; + tz->__tzrule[0].n = 2; tz->__tzrule[0].d = 0; } else { tz->__tzrule[1].ch = 'M'; - tz->__tzrule[1].m = 10; - tz->__tzrule[1].n = 5; + tz->__tzrule[1].m = 11; + tz->__tzrule[1].n = 1; tz->__tzrule[1].d = 0; } } @@ -193,8 +195,3 @@ _DEFUN (_tzset_r, (reent_ptr), TZ_UNLOCK; } - - - - -