rewrite: Refactor timezone config.

This commit is contained in:
2023-06-05 17:25:51 +03:00
parent eb0731e185
commit 809cada228
4 changed files with 113 additions and 154 deletions

View File

@@ -49,7 +49,7 @@ class LionUser(Timezoned):
@property
def timezone(self) -> pytz.timezone:
return self.config.timezone.value
return self.config.timezone.value or pytz.UTC
async def touch_discord_model(self, user: discord.User, seen=True):
"""