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>
This commit is contained in:
parent
0511798f06
commit
76486bbefb
@ -347,14 +347,20 @@ method _showcommit {lno} {
|
|||||||
set author_time {}
|
set author_time {}
|
||||||
catch {set author_name $header($cmit,author)}
|
catch {set author_name $header($cmit,author)}
|
||||||
catch {set author_email $header($cmit,author-mail)}
|
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_name {}
|
||||||
set committer_email {}
|
set committer_email {}
|
||||||
set committer_time {}
|
set committer_time {}
|
||||||
catch {set committer_name $header($cmit,committer)}
|
catch {set committer_name $header($cmit,committer)}
|
||||||
catch {set committer_email $header($cmit,committer-mail)}
|
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)}]} {
|
if {[catch {set msg $header($cmit,message)}]} {
|
||||||
set msg {}
|
set msg {}
|
||||||
|
Loading…
Reference in New Issue
Block a user