Skip to content

Commit

Permalink
gitk: Disable fastdate stuff for now
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Nov 20, 2005
1 parent f6e2869 commit 757f17b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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)]} {
Expand All @@ -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}

Expand Down

0 comments on commit 757f17b

Please sign in to comment.