Possibly fixed #8 #57

Merged
profitroll merged 10 commits from profitroll/timezones-fix into dev 2024-05-31 00:25:54 +03:00
Showing only changes of commit 3f20fdb46a - Show all commits

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)