We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf3852 commit d8984ddCopy full SHA for d8984dd
django_celery_beat/models.py
@@ -392,8 +392,8 @@ def from_schedule(cls, schedule):
392
393
def due_start_time(self, start_time):
394
start, ends_in, now = self.schedule.remaining_delta(start_time)
395
- if str(start.tzinfo) == str(
396
- now.tzinfo) and now.utcoffset() != start.utcoffset():
+ if (str(start.tzinfo) == str(now.tzinfo) and
+ now.utcoffset() != start.utcoffset()):
397
start = start.replace(tzinfo=now.tzinfo)
398
return start + ends_in
399
0 commit comments