提交 757f17bc 编写于 作者: P Paul Mackerras

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: NPaul Mackerras <paulus@samba.org>
上级 f6e2869f
......@@ -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}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册