summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-11-28 15:37:19 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-11-28 15:37:19 (GMT)
commit1f2642848c07487ab88ff382fe7a9a1031a98c29 (patch)
treed6022ea309394ccd81b7c8f5b8faac421007551a /tests/clock.test
parent5faf0edf573054b2d6a99deecf9dd30baae3282d (diff)
downloadtcl-1f2642848c07487ab88ff382fe7a9a1031a98c29.zip
tcl-1f2642848c07487ab88ff382fe7a9a1031a98c29.tar.gz
tcl-1f2642848c07487ab88ff382fe7a9a1031a98c29.tar.bz2
Corrected bug in DST transition times for locales that specify transition in local Standard Time
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index f618a6a..6674fe4 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.59 2005/10/03 17:42:32 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.60 2005/11/28 15:37:19 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -35474,6 +35474,19 @@ test clock-50.2 {format / scan -2 as a local time} {
set result
} -2
+test clock-51.1 {correct conversion of times in Sydney} {
+ # Paul Mackerras reported a bug where DST rollover in New South Wales
+ # was miscalculated. The problem was that tclZIC.tcl had a
+ # typo in the switch case where DST begins/ends at a given time
+ # Standard Time (that is, winter time).
+ set result {}
+ foreach t {1130601599 1130601600 1130637599 1130637600} {
+ lappend result [clock format $t -format %H:%M:%S \
+ -timezone :Australia/Sydney]
+ }
+ set result
+} {01:59:59 03:00:00 12:59:59 13:00:00}
+
# cleanup
namespace delete ::testClock