@matheusbsbs / matheus-bagliano / commits / 757f17bca5
Fork 0

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>

Paul Mackerras committed Nov 21, 2005 at 09:56 UTC 757f17bca50f4a227db2974dd8fd10c8b61a69f1
1 file changed +5 -1
gitk
+5 -1
@@ -3636,8 +3636,11 @@ proc doquit {} {
3636 }
3637
3638 proc formatdate {d} {
3639 - global hours nhours tfd
3639 + global hours nhours tfd fastdate
3640
3641 + if {!$fastdate} {
3642 + return [clock format $d -format "%Y-%m-%d %H:%M:%S"]
3643 + }
3644 set hr [expr {$d / 3600}]
3645 set ms [expr {$d % 3600}]
3646 if {![info exists hours($hr)]} {
@@ -3662,6 +3665,7 @@ set gaudydiff 0
3665 set maxgraphpct 50
3666 set maxwidth 16
3667 set revlistorder 0
3668 +set fastdate 0
3669
3670 set colors {green red blue magenta darkgrey brown orange}
3671