From bd8b256e6d63f4aa1d717ba39445295ae729b465 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 28 Mar 2021 01:41:54 +0100 Subject: [PATCH] fix issue #2 --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index e92e17e..a178da4 100644 --- a/src/main.py +++ b/src/main.py @@ -212,8 +212,8 @@ def user_or_nick(user): def goodTimezone(date, type): if type == 0: - return str(date.astimezone(timezone(os.environ['TIMEZONE'])))[:-13].replace('-', '/').split() + return str(pytz.timezone(os.environ['TIMEZONE']).fromutc(date))[:-13].replace('-', '/').split() elif type == 1: - return str(date.astimezone(timezone(os.environ['TIMEZONE'])))[:-13].replace('-', '/').replace(' ', ' à ') + return str(pytz.timezone(os.environ['TIMEZONE']).fromutc(date))[:-13].replace('-', '/').replace(' ', ' à ') client.run(os.environ['TOKEN_DISCORD'])