summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2006-04-19 16:43:00 (GMT)
committerkennykb <kennykb@noemail.net>2006-04-19 16:43:00 (GMT)
commit72704b879c8aa8e1da6d532f5e6c9cc69e0d2e4d (patch)
tree131734432ff738e20e51a950384a05da75b03e48 /tests/clock.test
parent9205a8b0a1e67d05a97272cda9aac8a187e6ded3 (diff)
downloadtcl-72704b879c8aa8e1da6d532f5e6c9cc69e0d2e4d.zip
tcl-72704b879c8aa8e1da6d532f5e6c9cc69e0d2e4d.tar.gz
tcl-72704b879c8aa8e1da6d532f5e6c9cc69e0d2e4d.tar.bz2
fix for Martin Lemburg's DST conversion bug.
http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0 FossilOrigin-Name: 48bbbafac153ba24a73fa999ec3236cf84e4b468
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 50892b6..8c4a882 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.62 2006/04/05 15:17:39 dgp Exp $
+# RCS: @(#) $Id: clock.test,v 1.63 2006/04/19 16:43:03 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -35482,6 +35482,19 @@ test clock-51.1 {correct conversion of times in Sydney} {
set result
} {01:59:59 03:00:00 12:59:59 13:00:00}
+test clock-52.1 {Posix timezone and conversion on last Sunday} {
+ # Martin Lemburg reported a bug where if tzdata is missing, then
+ # times are converted incorrectly in locales where DST conversion
+ # happens in the last (nominal 5th) week of a month.
+ set result {}
+ set timezone <MEZ>-01:00:00<MESZ>-02:00:00,M3.5.0/02:00:00,M10.5.0/01:00:00
+ foreach t {1143334799 1143334800} {
+ lappend result [clock format $t -format %H:%M:%S -timezone $timezone] \
+ [clock format $t -format %H:%M:%S -timezone :Europe/Berlin]
+ }
+ set result
+} {01:59:59 01:59:59 03:00:00 03:00:00}
+
# cleanup
namespace delete ::testClock