From 9ae319cbb3a8ecc1fc3875b3a96ef7b6a0ac5a9b Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 30 May 2024 23:24:12 +0200 Subject: [PATCH] Removed wrong localize --- plugins/commands/upcoming.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/commands/upcoming.py b/plugins/commands/upcoming.py index 9ede51a..e34e79c 100644 --- a/plugins/commands/upcoming.py +++ b/plugins/commands/upcoming.py @@ -22,13 +22,13 @@ async def command_upcoming(app: PyroClient, message: Message): ) return - date_min = pytz.utc.localize( + date_min = ( datetime.now(user.location.timezone).replace(second=0, microsecond=0) - ) - date_max = pytz.utc.localize( + ).replace(tzinfo=pytz.utc) + date_max = ( datetime.now(user.location.timezone).replace(second=0, microsecond=0) + timedelta(days=30) - ) + ).replace(tzinfo=pytz.utc) entries = [ await GarbageEntry.from_record(entry)