summaryrefslogtreecommitdiffstats
path: root/library/clock.tcl
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 21:57:06 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 21:57:06 (GMT)
commit4cc1178952c2e7eef686282007f5046adceb1ec1 (patch)
tree5a5988ad852f160b1c5f5b28ffad0bcf3c73f143 /library/clock.tcl
parent4d179fc03511de7bacdfec791e8a1080ea81171d (diff)
downloadtcl-4cc1178952c2e7eef686282007f5046adceb1ec1.zip
tcl-4cc1178952c2e7eef686282007f5046adceb1ec1.tar.gz
tcl-4cc1178952c2e7eef686282007f5046adceb1ec1.tar.bz2
1st try to rewrite clock in C
Diffstat (limited to 'library/clock.tcl')
-rwxr-xr-xlibrary/clock.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/clock.tcl b/library/clock.tcl
index 535a67d..5b48eb3 100755
--- a/library/clock.tcl
+++ b/library/clock.tcl
@@ -1178,7 +1178,7 @@ proc ::tcl::clock::ParseClockFormatFormat2 {format locale procName} {
#
#----------------------------------------------------------------------
-proc ::tcl::clock::scan { args } {
+proc ::tcl::clock::__org_scan { args } {
set format {}
@@ -1300,7 +1300,9 @@ proc ::tcl::clock::FreeScan { string base timezone locale } {
variable TZData
# Get the data for time changes in the given zone
-
+ if {$timezone eq {}} {
+ set timezone [GetSystemTimeZone]
+ }
try {
SetupTimeZone $timezone
} on error {retval opts} {