dualfroz 1a56b64326 Fix GetPreviousOccurrence returning a day in a disallowed month
When the time-of-day search rolls back past the 1st of the month, dayLimit
(and maxDay) can drop below the first valid day of month. The day-of-month
'*' fast path in TryGetPreviousDay returned actualDay = 0, and
DateTimeToTicks(year, month, 0, ...) underflowed into the last day of the
previous month, which is not re-validated against the month field. Guard
against maxDay below the first day of month so the caller advances to the
previous allowed month instead.
2026-09-06 01:19:48 +02:00
S
Description
My contributions to HangfireIO/Cronos: 2 commits
70 KiB
0 Stars 1 Watchers 0 Forks
Languages
C# 100%