UI/UserInterface.py

changeset 3202
d21df6f384fc
parent 3201
0f115f6db6cb
child 3321
ad3a75d3d870
--- a/UI/UserInterface.py	Sun Jan 12 18:31:15 2014 +0100
+++ b/UI/UserInterface.py	Sun Jan 12 18:35:42 2014 +0100
@@ -5794,11 +5794,11 @@
                         if period == 2 and lastCheck.day() == now.day():
                             # daily
                             return
-                        elif (period == 3 and
-                              lastCheck.weekNumber() == now.weekNumber()):
+                        elif period == 3 and lastCheck.daysTo(now) < 7:
                             # weekly
                             return
-                        elif period == 4 and lastCheck.month() == now.month():
+                        elif period == 4 and (lastCheck.daysTo(now) <
+                                              lastCheck.daysInMonth()):
                             # monthly
                             return
         

eric ide

mercurial