summaryrefslogtreecommitdiffstats
path: root/mac/tclMacTime.c
diff options
context:
space:
mode:
authordas <das>2002-01-04 11:21:05 (GMT)
committerdas <das>2002-01-04 11:21:05 (GMT)
commiteaaba084fdd1a95fa0203bd16568f7350bd77b41 (patch)
treeda971aa52e9cd382af081c9ee3c975f97a9f8761 /mac/tclMacTime.c
parent7dea16173852a85ca6f319b02f418e4f54ff91c1 (diff)
downloadtcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.zip
tcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.tar.gz
tcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.tar.bz2
* mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName bug
Diffstat (limited to 'mac/tclMacTime.c')
-rw-r--r--mac/tclMacTime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mac/tclMacTime.c b/mac/tclMacTime.c
index 25e42ca..fa5b215 100644
--- a/mac/tclMacTime.c
+++ b/mac/tclMacTime.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacTime.c,v 1.6 2001/11/23 01:28:42 das Exp $
+ * RCS: @(#) $Id: tclMacTime.c,v 1.7 2002/01/04 11:21:05 das Exp $
*/
#include "tclInt.h"
@@ -388,6 +388,9 @@ TclpGetTZName(int dst)
register TABLE *tp;
long zonevalue=-TclpGetGMTOffset();
+ if (gmt_isdst)
+ zonevalue += HOUR(1);
+
if(gmt_lastGetDateUseGMT) /* hack: if last TclpGetDate was called */
zonevalue=0; /* with useGMT==1 then we're using GMT */