ref: 6a9eedea88d4194407f8c0a578e4458f73b7364d
parent: b5eccea611ebc00d0b8b5c269f2e1f4af82e3c13
author: Tor Andersson <[email protected]>
date: Mon Aug 24 10:27:17 EDT 2020
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.
--- a/jsdate.c
+++ b/jsdate.c
@@ -107,7 +107,7 @@
return y;
}
-static int InLeapYear(int t)
+static int InLeapYear(double t)
{
return DaysInYear(YearFromTime(t)) == 366;
}