fix month wraparound in gmail module

This commit is contained in:
petrucci4prez 2017-11-05 17:47:55 -05:00
parent 88a495defa
commit 0fce547c6c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def _getNextDate():
m = datetime.now().month + 1 m = datetime.now().month + 1
y = datetime.now().year y = datetime.now().year
y = y + 1 if m > 12 else y y = y + 1 if m > 12 else y
return datetime(year=y, month=m%12, day=1, hour=12, minute=0) return datetime(year=y, month=((m-1)%12)+1, day=1, hour=12, minute=0)
@async(daemon=True) @async(daemon=True)
def _scheduleAction(action): def _scheduleAction(action):