diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-04-14 12:08:07 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-04-14 12:08:07 +0000 |
commit | 51291d61e2cfa747ee567f668c0e8cc0122107a3 (patch) | |
tree | 71561a4c801259054d669f8603dd32dee7388adc | |
parent | 03d59fb47dcb7ab842fac31b988f8d5a6338d507 (diff) | |
download | newlib-51291d61e2cfa747ee567f668c0e8cc0122107a3.zip newlib-51291d61e2cfa747ee567f668c0e8cc0122107a3.tar.gz newlib-51291d61e2cfa747ee567f668c0e8cc0122107a3.tar.bz2 |
* localtime.cc (tzload): Implement setting __tzrule's offset member
using newlib's __gettzinfo () interface also when tzload returns
successfully.
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/localtime.cc | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6c28c6c..795381c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2009-04-14 Corinna Vinschen <corinna@vinschen.de> + + * localtime.cc (tzload): Implement setting __tzrule's offset member + using newlib's __gettzinfo () interface also when tzload returns + successfully. + 2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com> * include/stdint.h (intptr_t): Remove long from type. diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index 3d5b29c..6c05851 100644 --- a/winsup/cygwin/localtime.cc +++ b/winsup/cygwin/localtime.cc @@ -859,6 +859,10 @@ tzload(const char *name, struct state *sp) } } } + __gettzinfo ()->__tzrule[0].offset + = -sp->ttis[1].tt_gmtoff; + __gettzinfo ()->__tzrule[1].offset + = -sp->ttis[0].tt_gmtoff; return 0; } |