properly calculate relative offsets via parseDT
This commit is contained in:
parent
dfdd6d6dc5
commit
bc7108cfb7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user