diff --git a/zerver/management/commands/enqueue_digest_emails.py b/zerver/management/commands/enqueue_digest_emails.py index a99688acd2..d2c891c594 100644 --- a/zerver/management/commands/enqueue_digest_emails.py +++ b/zerver/management/commands/enqueue_digest_emails.py @@ -38,7 +38,7 @@ def inactive_since(user_profile, cutoff): return last_visit < cutoff def last_business_day(): - one_day = datetime.timedelta(hours=24) + one_day = datetime.timedelta(hours=23) previous_day = datetime.datetime.now(tz=pytz.utc) - one_day while previous_day.weekday() not in VALID_DIGEST_DAYS: previous_day -= one_day