summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 14:06:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 14:06:54 (GMT)
commit2be73fd5c778fce1daef0fc1c0d1fddefbf8ce9f (patch)
tree9f0fc2c5c2c2853184430e79f102f8ffca4405be /library
parent17199973cb85d23394ffe2fbc5087aa18a311ac6 (diff)
parent7e63083ea10c94a9a905807f6f457820303f787f (diff)
downloadtcl-2be73fd5c778fce1daef0fc1c0d1fddefbf8ce9f.zip
tcl-2be73fd5c778fce1daef0fc1c0d1fddefbf8ce9f.tar.gz
tcl-2be73fd5c778fce1daef0fc1c0d1fddefbf8ce9f.tar.bz2
Merge 9.0
Diffstat (limited to 'library')
-rw-r--r--library/clock.tcl3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/clock.tcl b/library/clock.tcl
index 150ae3c..136ded2 100644
--- a/library/clock.tcl
+++ b/library/clock.tcl
@@ -2988,8 +2988,7 @@ proc ::tcl::clock::GetSystemTimeZone {} {
set timezone $result
} elseif {[set result [getenv TZ]] ne {}} {
set timezone $result
- }
- if {![info exists timezone]} {
+ } else {
# Cache the time zone only if it was detected by one of the
# expensive methods.
if { [info exists CachedSystemTimeZone] } {