diff options
author | kennykb <kennykb@noemail.net> | 2004-03-10 16:01:20 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2004-03-10 16:01:20 (GMT) |
commit | 334071ec42c365584e4618cd00df5d6fb41d03e0 (patch) | |
tree | fbd137727c35739b11146e57d326899ef0f42213 /generic/tclGetDate.y | |
parent | 480d0cb641f2f77424e5ed9b7f428c5b6f8bc24a (diff) | |
download | tcl-334071ec42c365584e4618cd00df5d6fb41d03e0.zip tcl-334071ec42c365584e4618cd00df5d6fb41d03e0.tar.gz tcl-334071ec42c365584e4618cd00df5d6fb41d03e0.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.
FossilOrigin-Name: 3256bce7434909db6c282d90cbe60779f004d5fc
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r-- | generic/tclGetDate.y | 4 |
1 files changed, 2 insertions, 2 deletions
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; |