Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 478161 - 5th arg of mktime should begin at zero; r=ted.mielczarek
  • Loading branch information
ja-JP committed Feb 26, 2009
1 parent 67f87f0 commit 6f34484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/version_win.pl
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/src/config/version_win.pl
Expand Up @@ -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
Expand Down

0 comments on commit 6f34484

Please sign in to comment.