Open Ooru opened 3 years ago
Can you add some description of the issue beyond a bunch code?
Every 400 year is leap, so like already fixed in Line 732 for 4 years cycle, 4 * year100 will produce 1 day less then 400 years, you should correct: year100 = 3 and continue calculations.
"compute_year" method returns year from 1900 base, "year_is_leap_year" method argument is 0 based (or 1600 based)
This will strike around 2400 year
Hi I want to contribute on this issue if I allowed please
Hi I want to contribute on this issue if I allowed please
From my side I permit. Sorry for long answer
https://github.com/microsoft/cpprestsdk/blob/41e7d0074b6cb5b22c89f835b4531d848ab66987/Release/src/utilities/asyncrt_utils.cpp#L732
https://github.com/microsoft/cpprestsdk/blob/41e7d0074b6cb5b22c89f835b4531d848ab66987/Release/src/utilities/asyncrt_utils.cpp#L771
const auto& monthTable = year_is_leap_year(year + 1900) ? cumulative_days_to_month_leap : cumulative_days_to_month;