You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
We currently use the timezone of the user executing the command to calculate the localized data.
Instead, we should use the timezone of the user whose data is being shown.
To accomplish this, we need to cache the timezones.
Whenever a user executes a command or changes their nickname, their timezone should be extracted from their username and cached in a simple dict.
The extract_utc_offset function should then also take the username that the data is about and return their timezone.
This approach won't work across restarts, but I think that's fine.
The text was updated successfully, but these errors were encountered:
We currently use the timezone of the user executing the command to calculate the localized data.
Instead, we should use the timezone of the user whose data is being shown.
To accomplish this, we need to cache the timezones.
Whenever a user executes a command or changes their nickname, their timezone should be extracted from their username and cached in a simple dict.
The
extract_utc_offset
function should then also take the username that the data is about and return their timezone.This approach won't work across restarts, but I think that's fine.
The text was updated successfully, but these errors were encountered: