Y2K fix. Localtime returns time by definition year - 1900. So year 2000

is returned as 100.


git-svn-id: svn://10.0.0.236/trunk@56658 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
risto%netscape.com
2000-01-03 10:06:00 +00:00
parent e54fac7b5f
commit 93f44aaa74

View File

@@ -776,7 +776,7 @@ sub logdate
my ($sec,$min,$hour,$mday,$mon,$year) = localtime ($t);
return sprintf ("%02d/%02d/%02d %02d:%02d",
$mon + 1, $mday, $year, $hour, $min);
$mon + 1, $mday, $year + 1900, $hour, $min);
}
# days: how long ago was that?