fix issue #2
This commit is contained in:
parent
22b5924c29
commit
bd8b256e6d
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ def user_or_nick(user):
|
||||||
|
|
||||||
def goodTimezone(date, type):
|
def goodTimezone(date, type):
|
||||||
if type == 0:
|
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:
|
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'])
|
client.run(os.environ['TOKEN_DISCORD'])
|
||||||
|
|
Reference in a new issue