From 51291d61e2cfa747ee567f668c0e8cc0122107a3 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 14 Apr 2009 12:08:07 +0000 Subject: * localtime.cc (tzload): Implement setting __tzrule's offset member using newlib's __gettzinfo () interface also when tzload returns successfully. --- winsup/cygwin/localtime.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winsup/cygwin/localtime.cc') diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index 3d5b29c46..6c05851bd 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; } -- cgit v1.2.3