Skip to content
Extraits de code Groupes Projets
Valider 73dc0084 rédigé par echarp's avatar echarp
Parcourir les fichiers

Correction: the nth day was off by 1 when it was exactly a multiple of 7.

For exemple monday the 28th was marked as the fifth monday of the month, wrong!!!
parent 8290c6a8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -11,7 +11,7 @@ module Schedule ...@@ -11,7 +11,7 @@ module Schedule
def prepare_schedule def prepare_schedule
r = IceCube::Rule.send rule.split('_').first r = IceCube::Rule.send rule.split('_').first
if rule == 'monthly_day' if rule == 'monthly_day'
r.day_of_week start_time.wday => [start_time.day / 7 + 1] r.day_of_week start_time.wday => [(start_time.day - 1) / 7 + 1]
else else
r r
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter