summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-10-04 15:30:25 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-10-04 15:30:25 (GMT)
commit54af15ebd7bbd1a3dcdac1fcd0103c74be2ff12f (patch)
tree9b9caee37c97d19cbddf34efae0c4da367196385 /tests/clock.test
parentf740197ce220d1842b0a408a30031c150b54db0c (diff)
downloadtcl-54af15ebd7bbd1a3dcdac1fcd0103c74be2ff12f.zip
tcl-54af15ebd7bbd1a3dcdac1fcd0103c74be2ff12f.tar.gz
tcl-54af15ebd7bbd1a3dcdac1fcd0103c74be2ff12f.tar.bz2
* tests/clock.test (clock-34.*): Removed an antibug that forced
comparison of [clock scan] results with the :localtime time zone. Now that [clock scan] uses the current time zone instead, the antibug caused several tests to fail. [Bug 1038554]
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 47bd228..dae01a2 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -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: clock.test,v 1.45 2004/09/11 18:57:57 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.46 2004/10/04 15:30:25 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -34966,7 +34966,7 @@ test clock-34.5 {clock scan tests} {
} {02/14/92 12:20:00 PM}
test clock-34.6 {clock scan tests} {
set time [clock scan "Oct 23,1992 15:00"]
- clock format $time -format {%b %d,%Y %H:%M} -timezone :localtime
+ clock format $time -format {%b %d,%Y %H:%M}
} {Oct 23,1992 15:00}
test clock-34.7 {clock scan tests} {
set time [clock scan "Oct 23,1992 15:00 GMT"]
@@ -34991,31 +34991,31 @@ test clock-34.11 {clock scan tests} {
test clock-34.12 {clock scan, relative times} {
set time [clock scan "Oct 23, 1992 -1 day"]
- clock format $time -format {%b %d, %Y} -timezone :localtime
+ clock format $time -format {%b %d, %Y}
} "Oct 22, 1992"
test clock-34.13 {clock scan, ISO 8601 base date format} {
set time [clock scan "19921023"]
- clock format $time -format {%b %d, %Y} -timezone :localtime
+ clock format $time -format {%b %d, %Y}
} "Oct 23, 1992"
test clock-34.14 {clock scan, ISO 8601 expanded date format} {
set time [clock scan "1992-10-23"]
- clock format $time -format {%b %d, %Y} -timezone :localtime
+ clock format $time -format {%b %d, %Y}
} "Oct 23, 1992"
test clock-34.15 {clock scan, DD-Mon-YYYY format} {
set time [clock scan "23-Oct-1992"]
- clock format $time -format {%b %d, %Y} -timezone :localtime
+ clock format $time -format {%b %d, %Y}
} "Oct 23, 1992"
test clock-34.16 {clock scan, ISO 8601 point in time format} {
set time [clock scan "19921023T235959"]
- clock format $time -format {%b %d, %Y %H:%M:%S} -timezone :localtime
+ clock format $time -format {%b %d, %Y %H:%M:%S}
} "Oct 23, 1992 23:59:59"
test clock-34.17 {clock scan, ISO 8601 point in time format} {
set time [clock scan "19921023 235959"]
- clock format $time -format {%b %d, %Y %H:%M:%S} -timezone :localtime
+ clock format $time -format {%b %d, %Y %H:%M:%S}
} "Oct 23, 1992 23:59:59"
test clock-34.18 {clock scan, ISO 8601 point in time format} {
set time [clock scan "19921023T000000"]
- clock format $time -format {%b %d, %Y %H:%M:%S} -timezone :localtime
+ clock format $time -format {%b %d, %Y %H:%M:%S}
} "Oct 23, 1992 00:00:00"
# CLOCK SCAN REAL TESTS