summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-10-18 20:20:28 (GMT)
committerhobbs <hobbs>2001-10-18 20:20:28 (GMT)
commit2e27ec369165aca385db16cb617ced30928ced42 (patch)
tree9635bc95960987f0fc5828ccfe10e1a355563ec9 /tests
parent026b12ef89aab44e6f8580ac75268c9421330538 (diff)
downloadtcl-2e27ec369165aca385db16cb617ced30928ced42.zip
tcl-2e27ec369165aca385db16cb617ced30928ced42.tar.gz
tcl-2e27ec369165aca385db16cb617ced30928ced42.tar.bz2
* tests/clock.test (clock-8.1):
* generic/tclDate.c (RelativeMonth): * generic/tclGetDate.y (RelativeMonth): corrected off-by-one-day error in clock scan with relative months and years during swing hours. [Bug #413397, Patch #414024] (lavana)
Diffstat (limited to 'tests')
-rw-r--r--tests/clock.test13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 776586b..c96c2e7 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: clock.test,v 1.16 2001/07/03 20:48:38 mdejong Exp $
+# RCS: @(#) $Id: clock.test,v 1.17 2001/10/18 20:20:28 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -418,7 +418,16 @@ test clock-7.3 {clock scan next monthname} {
-format %m.%Y
} "05.2001"
+# We use 5am PST, 31-12-1999 as the base for these scans because irrespective
+# of your local timezone it should always give us times on December 31
+set 5amPST 946645200
+test clock-8.1 {clock scan midnight/gmt range bug 413397} {
+ set fmt "%m/%d"
+ list [clock format [clock scan year -base $5amPST -gmt 0] -format $fmt] \
+ [clock format [clock scan year -base $5amPST -gmt 1] -format $fmt]
+} {12/31 12/31}
+
+
# cleanup
::tcltest::cleanupTests
return
-