Created
February 12, 2020 09:06
-
-
Save yyamasak/a052af582fec673ee1a1720665ef87c1 to your computer and use it in GitHub Desktop.
tcllib widget::dateentry patch to 0.96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150,152c150,157 | |
< set now [clock seconds] | |
< set x [clock format $now -format "%d/%m%/%Y"] | |
< set rawDate [clock scan "$x 00:00:00" -format "%d/%m%/%Y %H:%M:%S"] | |
--- | |
> if {[info exists $options(-textvariable)]} { | |
> set x [set $options(-textvariable)] | |
> set rawDate [clock scan "$x" -format $options(-dateformat)] | |
> } else { | |
> set now [clock seconds] | |
> set x [clock format $now -format "%d/%m%/%Y"] | |
> set rawDate [clock scan "$x 00:00:00" -format "%d/%m%/%Y %H:%M:%S"] | |
> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The value set to the variable specified by -textvariable does not set the initial date.