Bug 478161 - 5th arg of mktime should begin at zero; r=ted.mielczarek

This commit is contained in:
Atsushi Sakai 2009-02-26 18:27:41 +01:00
Родитель 67f87f0e6a
Коммит 6f34484675
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -54,8 +54,8 @@ sub daysFromBuildID
$d || die("Unrecognized buildid string.");
my $secondstodays = 60 * 60 * 24;
return (POSIX::mktime(00, 00, 00, $d, $m, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 01, 100)) / $secondstodays;
return (POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays;
}
#Creates version resource file

Просмотреть файл

@ -54,8 +54,8 @@ sub daysFromBuildID
$d || die("Unrecognized buildid string.");
my $secondstodays = 60 * 60 * 24;
return (POSIX::mktime(00, 00, 00, $d, $m, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 01, 100)) / $secondstodays;
return (POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays;
}
#Creates version resource file