зеркало из https://github.com/mozilla/gecko-dev.git
Y2K fix. Localtime returns time by definition year - 1900. So year 2000
is returned as 100.
This commit is contained in:
Родитель
285c3246e1
Коммит
ca88d1a230
|
@ -776,7 +776,7 @@ sub logdate
|
||||||
my ($sec,$min,$hour,$mday,$mon,$year) = localtime ($t);
|
my ($sec,$min,$hour,$mday,$mon,$year) = localtime ($t);
|
||||||
|
|
||||||
return sprintf ("%02d/%02d/%02d %02d:%02d",
|
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?
|
# days: how long ago was that?
|
||||||
|
|
Загрузка…
Ссылка в новой задаче