summaryrefslogtreecommitdiffstats
path: root/library/clock.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 07:39:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-23 07:39:34 (GMT)
commiteb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f (patch)
treedd7e8605b200cbb5720dee7d9d0e8f2d62a7631e /library/clock.tcl
parente3afa124209feea2c83bdd8b506ddd3974647cb4 (diff)
parent8242d1a544d685846fe49557be8c9fd628d42329 (diff)
downloadtcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.zip
tcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.tar.gz
tcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.tar.bz2
Merge 8.6
Diffstat (limited to 'library/clock.tcl')
-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] } {