Hi,
Frédéric Benninger wrote:
Hi,
How to commit minor fix to have output date string with two digits?
--- tahlib.pm Révision : 23649
+++ tahlib.pm Copie
@@ -31,7 +31,7 @@
if ($Config->get("DateTimeString"))
{
- my ($s, $i, $h, $d, $m, $y) = (localtime)[0..7];
+ my ($s, $i, $h, $d, $m, $y) = map { sprintf("%02d",$_) }
(localtime)[0..7];
++$m;
my $Y = $y + 1900;
$y = $y % 100; # two-digit year
Fixed.
I also removed the square brackets around "DateTimeString", so if you
want them back you should edit "DateTimeString" in file "tilesAtHome.conf".
Best regards
Alfons
_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome