diff options
author | Kevin B Kenny <kennykb@acm.org> | 2009-10-24 22:20:53 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2009-10-24 22:20:53 (GMT) |
commit | cbc2bb986319f2dfa67bbbf4bcbe20a2d5e5eafb (patch) | |
tree | 87aa03e01cb6b5439993ed8b48eec02de1d7e3cf /tests | |
parent | 209270f72901889b717272fcb3a1cd80b76bcaca (diff) | |
download | tcl-cbc2bb986319f2dfa67bbbf4bcbe20a2d5e5eafb.zip tcl-cbc2bb986319f2dfa67bbbf4bcbe20a2d5e5eafb.tar.gz tcl-cbc2bb986319f2dfa67bbbf4bcbe20a2d5e5eafb.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')
-rw-r--r-- | tests/clock.test | 12 |
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} { |