summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-03-10 16:01:21 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-03-10 16:01:21 (GMT)
commit1969f4d63cdf7429ac325c01e8d15c4fcd94afc0 (patch)
treefbd137727c35739b11146e57d326899ef0f42213 /generic/tclDate.c
parenta70545f044df014691de40703123cfc21c68a806 (diff)
downloadtcl-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/tclDate.c')
-rw-r--r--generic/tclDate.c2
1 files changed, 1 insertions, 1 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;