diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-23 07:39:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-23 07:39:34 (GMT) |
commit | eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f (patch) | |
tree | dd7e8605b200cbb5720dee7d9d0e8f2d62a7631e /library/clock.tcl | |
parent | e3afa124209feea2c83bdd8b506ddd3974647cb4 (diff) | |
parent | 8242d1a544d685846fe49557be8c9fd628d42329 (diff) | |
download | tcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.zip tcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.tar.gz tcl-eb9f949b2cfdc79e6a450a1e4f6e3580ccde4d9f.tar.bz2 |
Merge 8.6
Diffstat (limited to 'library/clock.tcl')
-rw-r--r-- | library/clock.tcl | 3 |
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] } { |