summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2005-11-28 15:37:19 (GMT)
committerkennykb <kennykb@noemail.net>2005-11-28 15:37:19 (GMT)
commitde108c84dccad17c3987e67d782283659c10a405 (patch)
treed6022ea309394ccd81b7c8f5b8faac421007551a /tests/clock.test
parent42ce50b0b101fd09bd64ee1bf904dd2f978604de (diff)
downloadtcl-de108c84dccad17c3987e67d782283659c10a405.zip
tcl-de108c84dccad17c3987e67d782283659c10a405.tar.gz
tcl-de108c84dccad17c3987e67d782283659c10a405.tar.bz2
Corrected bug in DST transition times for locales that specify transition in local Standard Time
FossilOrigin-Name: cf37a1787cb81df7ec35527875204d7b36f4786a
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