diff options
author | Kevin B Kenny <kennykb@acm.org> | 2004-03-10 16:01:21 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2004-03-10 16:01:21 (GMT) |
commit | 1969f4d63cdf7429ac325c01e8d15c4fcd94afc0 (patch) | |
tree | fbd137727c35739b11146e57d326899ef0f42213 /generic | |
parent | a70545f044df014691de40703123cfc21c68a806 (diff) | |
download | tcl-1969f4d63cdf7429ac325c01e8d15c4fcd94afc0.zip tcl-1969f4d63cdf7429ac325c01e8d15c4fcd94afc0.tar.gz tcl-1969f4d63cdf7429ac325c01e8d15c4fcd94afc0.tar.bz2 |
* generic/tclGetDate.y (TclGetDate): Fix so that
[clock scan <timeOfDay> -gmt true] uses the GMT base date
instead of the local one. [Bug 913513]
* tests/clock.test: Added test cases for wrong ISO8601 week number
[Bug 500285] and wrong GMT base date [Bug 913513]. Several tests
still fail on Windows, and these are actual faults in [clock scan].
Fix is still pending.
* generic/tclDate.c: Regenerated.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclDate.c | 2 | ||||
-rw-r--r-- | generic/tclGetDate.y | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c index d6f8d45..3110f9e 100644 --- a/generic/tclDate.c +++ b/generic/tclDate.c @@ -927,7 +927,7 @@ TclGetDate(p, now, zone, timePtr) TclDateInput = p; /* now has to be cast to a time_t for 64bit compliance */ Start = now; - tm = TclpGetDate((TclpTime_t) &Start, 0); + tm = TclpGetDate((TclpTime_t) &Start, (zone == -50000)); thisyear = tm->tm_year + TM_YEAR_BASE; TclDateYear = thisyear; TclDateMonth = tm->tm_mon + 1; diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y index 3a7d032..f7f1366 100644 --- a/generic/tclGetDate.y +++ b/generic/tclGetDate.y @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclGetDate.y,v 1.19 2003/05/15 21:51:46 kennykb Exp $ + * RCS: @(#) $Id: tclGetDate.y,v 1.20 2004/03/10 16:01:26 kennykb Exp $ */ %{ @@ -1146,7 +1146,7 @@ TclGetDate(p, now, zone, timePtr) yyInput = p; /* now has to be cast to a time_t for 64bit compliance */ Start = now; - tm = TclpGetDate((TclpTime_t) &Start, 0); + tm = TclpGetDate((TclpTime_t) &Start, (zone == -50000)); thisyear = tm->tm_year + TM_YEAR_BASE; yyYear = thisyear; yyMonth = tm->tm_mon + 1; |