diff options
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index ea7310e..5f1b028 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -10,7 +10,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.25 2004/04/15 21:06:39 dkf Exp $ +# RCS: @(#) $Id: clock.test,v 1.26 2004/05/14 21:43:29 kennykb Exp $ set env(LC_TIME) POSIX @@ -173,6 +173,27 @@ test clock-3.13 {clock format with non-ASCII character in the format string} { set res } "\u00c4" +# Bug 942078 + +test clock-3.14 {change of time zone} -setup { + catch { unset oldTZ } + if { [info exists env(TZ)] } { + set oldTZ $env(TZ) + } +} -body { + set env(TZ) PST8PDT + set s [clock format 0 -format %H%M] + set env(TZ) GMT0 + append s -[clock format 0 -format %H%M] +} -cleanup { + if { [info exists oldTZ] } { + set env(TZ) $oldTZ + unset oldTZ + } else { + unset env(TZ) + } +} -result {1600-0000} + # clock scan test clock-4.1 {clock scan tests} { list [catch {clock scan} msg] $msg |