[Tilesathome] how to add a minor fix
Dirk-Lüder Kreie
osm-list at deelkar.net
Wed Nov 10 10:45:22 GMT 2010
Am 20.10.2010 14:33, schrieb a_a at gmx.de:
> 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".
Please *always* commit any changes to trunk first, or they will be lost
on the next client version name change.
--
Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0901°N 8.7868°E
Ceterum censeo Carthaginem esse delendam.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20101110/68baa27d/attachment.pgp>
More information about the Tilesathome
mailing list