From 201a04d5417d112bff9e9c0bdc728943448a780d Mon Sep 17 00:00:00 2001 From: demonchy Date: Thu, 18 Aug 2005 20:00:26 +0000 Subject: Correction du probleme de date --- d/sys/lampion/local/lib/svnlog/html.tt | 4 ++-- d/sys/lampion/local/sbin/svnlog | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'd') diff --git a/d/sys/lampion/local/lib/svnlog/html.tt b/d/sys/lampion/local/lib/svnlog/html.tt index f6c05b8..b981773 100644 --- a/d/sys/lampion/local/lib/svnlog/html.tt +++ b/d/sys/lampion/local/lib/svnlog/html.tt @@ -1,4 +1,4 @@ -[% USE date %] +[% USE date (locale ='fr_FR') %] [% BLOCK msg %] [% FOREACH msg = msgs %] [% msg %]
@@ -24,7 +24,7 @@ [% FOREACH r = revisions -%] [% IF r.msg.size () > 0 %]
-
[% date.format (r.date, 'le %D à %H:%S') %]
+
[% date.format (r.date, 'le %x à %H:%M') %]
Révision : [% r.rev %]

Auteur :

diff --git a/d/sys/lampion/local/sbin/svnlog b/d/sys/lampion/local/sbin/svnlog index 51af104..0755498 100755 --- a/d/sys/lampion/local/sbin/svnlog +++ b/d/sys/lampion/local/sbin/svnlog @@ -20,6 +20,8 @@ sub parse_revision $$rev{rev} = $r; $$rev{author} = shift @cmd; $$rev{date} = shift @cmd; + ## date 2005-08-10 00:10:53 +0200 (Wed, 10 Aug 2005) => 23:52:19 09-08-2005 + $$rev{date} =~ s/(\d{4})-(\d{2})-(\d{2}) (.*) \+.*$/$4 $3-$2-$1/; shift @cmd; # log message size pop @cmd while (@cmd && $cmd[-1] eq ''); # remove empty lines $$rev{msg} = \@cmd; @@ -34,6 +36,7 @@ sub parse_revision push @{$$rev{del}}, $2 and next if $1 eq 'D'; } } + close OUT; } sub usage -- cgit v1.2.3