From eaaba084fdd1a95fa0203bd16568f7350bd77b41 Mon Sep 17 00:00:00 2001 From: das Date: Fri, 4 Jan 2002 11:21:05 +0000 Subject: * mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName bug --- ChangeLog | 4 ++++ mac/tclMacTime.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7cebfda..d44156f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-01-04 Daniel Steffen + + * mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName bug + 2002-01-03 Don Porter * doc/FileSystem.3: 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 */ -- cgit v0.12