diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-06 19:21:29 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-06 19:21:29 +0000 |
commit | 75fb38a5fb223e6b45617ce8bc3b275b0d806b85 (patch) | |
tree | 20882da4b56f11245d8d49772341c6e4ba1c6a11 /newlib | |
parent | 585697536f9e5a3600d6b0b841b1eed1ce4def2b (diff) | |
download | newlib-75fb38a5fb223e6b45617ce8bc3b275b0d806b85.zip newlib-75fb38a5fb223e6b45617ce8bc3b275b0d806b85.tar.gz newlib-75fb38a5fb223e6b45617ce8bc3b275b0d806b85.tar.bz2 |
2008-10-06 Craig Howland <howland@LGSInnovations.com>
* 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.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/time/tzset_r.c | 15 |
2 files changed, 11 insertions, 9 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 53ce036..c7e946f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-10-06 Craig Howland <howland@LGSInnovations.com> + + * 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 <jjohnstn@redhat.com> * libc/string/str-two-way.h (critical_factorization): Cast the index diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c index 59c7c5f..d8f5c66 100644 --- a/newlib/libc/time/tzset_r.c +++ b/newlib/libc/time/tzset_r.c @@ -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; } - - - - - |