Removed wrong localize

This commit is contained in:
Profitroll 2024-05-30 23:24:12 +02:00
parent b939772c85
commit 9ae319cbb3
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -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)