Fix formatting of the year.

This commit is contained in:
Pavel Roskin 2002-12-12 16:13:20 +00:00
parent 5ea98ec55f
commit 4da228c21e
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ sub timef
{
# format unix time
my @time=localtime($_[0]);
return sprintf "%02d-%02d-%02d %02d:%02d", $time[4]+1, $time[3],
return sprintf "%02d-%02d-%d %02d:%02d", $time[4]+1, $time[3],
$time[5] + 1900, $time[2], $time[1];
}