summaryrefslogtreecommitdiff
path: root/d/sys
diff options
context:
space:
mode:
authordemonchy2005-08-18 20:00:26 +0000
committerdemonchy2005-08-18 20:00:26 +0000
commit201a04d5417d112bff9e9c0bdc728943448a780d (patch)
tree8ab8ede7e2a78acc0c97977292d8622d27152ca9 /d/sys
parent0267a146f28e7f43d6499159911ffcbb4cb69155 (diff)
Correction du probleme de date
Diffstat (limited to 'd/sys')
-rw-r--r--d/sys/lampion/local/lib/svnlog/html.tt4
-rwxr-xr-xd/sys/lampion/local/sbin/svnlog3
2 files changed, 5 insertions, 2 deletions
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 %] <br/>
@@ -24,7 +24,7 @@
[% FOREACH r = revisions -%]
[% IF r.msg.size () > 0 %]
<div class="ci">
- <div class="date">[% date.format (r.date, 'le %D à %H:%S') %]</div>
+ <div class="date">[% date.format (r.date, 'le %x à %H:%M') %]</div>
<div class="rev">Révision : [% r.rev %]</div>
<div class="author">
<h3> Auteur : </h3>
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