You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Day of the Week and Day of the Month checks should be split up - to allow for expressions that run on specific days of the month without caring about the current day.
From:
# check day of week and day of month (both must fail)if (!(Test-RangeAndValue-AtomContraint $Expression.DayOfWeek-NowValue ([int]$DateTime.DayOfWeek)) -and!(Test-RangeAndValue-AtomContraint $Expression.DayOfMonth-NowValue $DateTime.Day)) {
return$false
}
To:
# check day of monthif (!(Test-RangeAndValue-AtomContraint $Expression.DayOfMonth-NowValue $DateTime.Day)) {
return$false
}
# check day of weekif (!(Test-RangeAndValue-AtomContraint $Expression.DayOfWeek-NowValue ([int]$DateTime.DayOfWeek))) {
return$false
}
Also, @quaterly should be spelled correctly: @quarterly
The text was updated successfully, but these errors were encountered:
The Day of the Week and Day of the Month checks should be split up - to allow for expressions that run on specific days of the month without caring about the current day.
From:
To:
Also,
@quaterly
should be spelled correctly:@quarterly
The text was updated successfully, but these errors were encountered: