Upstream HangfireIO/Cronos state of the touched files before 7c74681733

This commit is contained in:
upstream committed 2026-09-04 09:32:17 +02:00
1 parent 1a56b64326
commit 9daaf8b304
2 files changed
-30

No files matched your search

-9
View File
@@ -995,15 +995,6 @@ namespace Cronos
var lastDayOfMonth = CalendarHelper.GetDaysInMonth(year, month);
var maxDay = dayLimit > lastDayOfMonth ? lastDayOfMonth : dayLimit;
// Rolling back past the 1st can drop maxDay below the first valid day,
// and the "*" fast path would then underflow into the previous month.
if (maxDay < CronField.DaysOfMonth.First)
{
day = default;
actualDay = default;
return false;
}
if (HasFlag(CronExpressionFlag.NearestWeekday))
{
day = HasFlag(CronExpressionFlag.DayOfMonthLast)