Patchwork [3,of,9] hgk: don't use fixed format for dates

login
register
mail settings
Submitter Andrew Shadura
Date March 10, 2013, 4:24 p.m.
Message ID <2e31d3c5d8f7912ce2e1.1362932684@localhost.localdomain>
Download mbox | patch
Permalink /patch/1100/
State Accepted
Commit 82289176717dbc7581e268a572d10c8a5834c825
Headers show

Comments

Andrew Shadura - March 10, 2013, 4:24 p.m.
# HG changeset patch
# User Andrew Shadura <bugzilla@tut.by>
# Date 1362928346 -3600
# Node ID 2e31d3c5d8f7912ce2e1e68848bb39bae9564aba
# Parent  345843b419ed0c99d0f580140b4d48716d4c146f
hgk: don't use fixed format for dates

Don't pass -format with a date format string,
use default instead so users can use their
own preferences.

Patch

diff --git a/contrib/hgk b/contrib/hgk
--- a/contrib/hgk
+++ b/contrib/hgk
@@ -380,11 +380,11 @@  proc parsecommit {id contents listed old
 	}
     }
     if {$audate != {}} {
-	set audate [clock format $audate -format "%Y-%m-%d %H:%M:%S"]
+	set audate [clock format $audate]
     }
     if {$comdate != {}} {
 	set cdate($id) $comdate
-	set comdate [clock format $comdate -format "%Y-%m-%d %H:%M:%S"]
+	set comdate [clock format $comdate]
     }
     set commitinfo($id) [list $headline $auname $audate \
 			     $comname $comdate $comment $rev $branch $bookmark]