summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
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