Fix type error in jsdate.js InLeapYear that led to bad calculations.

InLeapYear was passing the time in millis as an integer, which lead to
overflow errors and wrong results.
This commit is contained in:
Tor Andersson
2020-08-24 14:27:17 +02:00
parent b5eccea611
commit 6a9eedea88

View File

@@ -107,7 +107,7 @@ static int YearFromTime(double t)
return y;
}
static int InLeapYear(int t)
static int InLeapYear(double t)
{
return DaysInYear(YearFromTime(t)) == 366;
}