summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-09 04:48:27 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-05-09 04:48:27 (GMT)
commit76486bbefbaeb606f662dadde0ca5dac59a4ec31 (patch)
tree7d42afbe95b3374199d8d75bf2e048324217e59b /lib
parent0511798f06d3456885682605b54bd3bc378e8fda (diff)
downloadgit-76486bbefbaeb606f662dadde0ca5dac59a4ec31.zip
git-76486bbefbaeb606f662dadde0ca5dac59a4ec31.tar.gz
git-76486bbefbaeb606f662dadde0ca5dac59a4ec31.tar.bz2
git-gui: Format author/committer times in ISO format
This is a simple change to match what gitk does when it shows a commit; we format using ISO dates (yyyy-mm-dd HH:MM:SS). Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/blame.tcl14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/blame.tcl b/lib/blame.tcl
index d6d57d8..8b032d9 100644
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
@@ -347,14 +347,20 @@ method _showcommit {lno} {
set author_time {}
catch {set author_name $header($cmit,author)}
catch {set author_email $header($cmit,author-mail)}
- catch {set author_time [clock format $header($cmit,author-time)]}
+ catch {set author_time [clock format \
+ $header($cmit,author-time) \
+ -format {%Y-%m-%d %H:%M:%S}
+ ]}
set committer_name {}
set committer_email {}
set committer_time {}
catch {set committer_name $header($cmit,committer)}
catch {set committer_email $header($cmit,committer-mail)}
- catch {set committer_time [clock format $header($cmit,committer-time)]}
+ catch {set committer_time [clock format \
+ $header($cmit,committer-time) \
+ -format {%Y-%m-%d %H:%M:%S}
+ ]}
if {[catch {set msg $header($cmit,message)}]} {
set msg {}
@@ -383,8 +389,8 @@ method _showcommit {lno} {
}
$w_cmit insert end "commit $cmit
-Author: $author_name $author_email $author_time
-Committer: $committer_name $committer_email $committer_time
+Author: $author_name $author_email $author_time
+Committer: $committer_name $committer_email $committer_time
Original File: [escape_path $line_file($lno)]
$msg"