diff options
author | das <das> | 2002-01-04 11:21:05 (GMT) |
---|---|---|
committer | das <das> | 2002-01-04 11:21:05 (GMT) |
commit | eaaba084fdd1a95fa0203bd16568f7350bd77b41 (patch) | |
tree | da971aa52e9cd382af081c9ee3c975f97a9f8761 /mac | |
parent | 7dea16173852a85ca6f319b02f418e4f54ff91c1 (diff) | |
download | tcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.zip tcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.tar.gz tcl-eaaba084fdd1a95fa0203bd16568f7350bd77b41.tar.bz2 |
* mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName bug
Diffstat (limited to 'mac')
-rw-r--r-- | mac/tclMacTime.c | 5 |
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 */ |