diff options
author | Kevin B Kenny <kennykb@acm.org> | 2009-10-24 22:20:10 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2009-10-24 22:20:10 (GMT) |
commit | 2a552ac984e719a90dd9e9b554e2c3eb929359f9 (patch) | |
tree | 340993a36dece16bb8d921d53a05d18d6a94b9d8 /tests/clock.test | |
parent | 4c918aeb8891267ba470fbb2734bc5f0f711df00 (diff) | |
download | tcl-2a552ac984e719a90dd9e9b554e2c3eb929359f9.zip tcl-2a552ac984e719a90dd9e9b554e2c3eb929359f9.tar.gz tcl-2a552ac984e719a90dd9e9b554e2c3eb929359f9.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.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index 0f1e9da..39f9142 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.91 2009/06/09 13:52:38 kennykb Exp $ +# RCS: @(#) $Id: clock.test,v 1.92 2009/10/24 22:20:10 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} { |