summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-11-21 09:56:07 +1100
committerPaul Mackerras <paulus@samba.org>2005-11-21 09:56:07 +1100
commit757f17bca50f4a227db2974dd8fd10c8b61a69f1 (patch)
tree230d4a7b845a27bd9da9e5751af58247be3d1715 /gitk
parentf6e2869f48f7a9b51a2a867ce955c39a9314ef3b (diff)
downloadgit-757f17bca50f4a227db2974dd8fd10c8b61a69f1.tar.gz
gitk: Disable fastdate stuff for now
It has a fatal flaw in that it only handles timezones that are a multiple of an hour. It's really only needed with Tk8.5, where the clock format command has been reimplemented in Tcl and is much slower than in Tk8.4. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk6
1 files changed, 5 insertions, 1 deletions
diff --git a/gitk b/gitk
index 58b4abc693..3dd97e291e 100755
--- a/gitk
+++ b/gitk
@@ -3636,8 +3636,11 @@ proc doquit {} {
}
proc formatdate {d} {
- global hours nhours tfd
+ global hours nhours tfd fastdate
+ if {!$fastdate} {
+ return [clock format $d -format "%Y-%m-%d %H:%M:%S"]
+ }
set hr [expr {$d / 3600}]
set ms [expr {$d % 3600}]
if {![info exists hours($hr)]} {
@@ -3662,6 +3665,7 @@ set gaudydiff 0
set maxgraphpct 50
set maxwidth 16
set revlistorder 0
+set fastdate 0
set colors {green red blue magenta darkgrey brown orange}