summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2001-10-18 20:20:27 (GMT)
committerhobbs <hobbs@noemail.net>2001-10-18 20:20:27 (GMT)
commita75b096d8dfbce5dfd3b36ce4f0bf21210a1168c (patch)
tree9635bc95960987f0fc5828ccfe10e1a355563ec9 /tests
parentc60d840bf9dbabcff155a01dfbc23c185e700e5b (diff)
downloadtcl-a75b096d8dfbce5dfd3b36ce4f0bf21210a1168c.zip
tcl-a75b096d8dfbce5dfd3b36ce4f0bf21210a1168c.tar.gz
tcl-a75b096d8dfbce5dfd3b36ce4f0bf21210a1168c.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) FossilOrigin-Name: 864f0ce0a969317ae5c96626cbd24f4d0a54e3c7
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
-