summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2009-10-24 22:20:53 (GMT)
committerKevin B Kenny <kennykb@acm.org>2009-10-24 22:20:53 (GMT)
commit30a3c0dd1ee3d281c2131f4c2a8d13302b594e18 (patch)
tree87aa03e01cb6b5439993ed8b48eec02de1d7e3cf /tests/clock.test
parentf00682186bc011c9dea0bb6125848af3af894c87 (diff)
downloadtcl-30a3c0dd1ee3d281c2131f4c2a8d13302b594e18.zip
tcl-30a3c0dd1ee3d281c2131f4c2a8d13302b594e18.tar.gz
tcl-30a3c0dd1ee3d281c2131f4c2a8d13302b594e18.tar.bz2
* library/clock.tcl (ProcessPosixTimeZone):
Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 6af7134..32b3e67 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.83.2.6 2009/06/09 13:52:58 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.83.2.7 2009/10/24 22:20:54 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -36140,6 +36140,16 @@ test clock-52.3 {correct conversion of times in Russia} {
set result
} {01:59:59 03:00:00 02:59:59 02:00:00}
+test clock-52.4 {correct conversion of times in USA} {
+ # [Bug 2207436]
+ set result {}
+ foreach t [list 1268549999 1268550000 1257055199 1257055200] {
+ lappend result [clock format $t -format %H:%M:%S \
+ -timezone EST5EDT]
+ }
+ set result
+} {01:59:59 03:00:00 01:59:59 01:00:00}
+
# Regression test for Bug # 1505383
test clock-53.1 {%EC %Ey} {