properly calculate relative offsets via parseDT

This commit is contained in:
Brian S. Stephan 2021-12-01 07:51:58 -06:00
parent dfdd6d6dc5
commit bc7108cfb7
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Countdown(Plugin):
reminder.sent_reminder = True reminder.sent_reminder = True
elif reminder.recurring_period != '': elif reminder.recurring_period != '':
calendar = pdt.Calendar() calendar = pdt.Calendar()
when_t = calendar.parseDT(reminder.recurring_period, reminder.at_time, when_t = calendar.parseDT(f'in one {reminder.recurring_period}', reminder.at_time,
tzinfo=reminder.at_time.tzinfo)[0] tzinfo=reminder.at_time.tzinfo)[0]
if reminder.recurring_until is None or when_t <= reminder.recurring_until: if reminder.recurring_until is None or when_t <= reminder.recurring_until:
reminder.at_time = when_t reminder.at_time = when_t