mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Owner, Economy] Use UTC in the timestamps
This commit is contained in:
parent
abd154861d
commit
4fcf0924f3
@ -125,7 +125,7 @@ class Bank:
|
||||
balance = self.accounts[user.id]["balance"]
|
||||
else:
|
||||
balance = initial_balance
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
timestamp = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")
|
||||
account = {"name": user.name,
|
||||
"balance": balance,
|
||||
"created_at": timestamp
|
||||
|
||||
@ -689,7 +689,7 @@ class Owner:
|
||||
dpy_repo = "https://github.com/Rapptz/discord.py"
|
||||
python_url = "https://www.python.org/"
|
||||
since = datetime.datetime(2016, 1, 2, 0, 0)
|
||||
days_since = (datetime.datetime.now() - since).days
|
||||
days_since = (datetime.datetime.utcnow() - since).days
|
||||
dpy_version = "[{}]({})".format(discord.__version__, dpy_repo)
|
||||
py_version = "[{}.{}.{}]({})".format(*os.sys.version_info[:3],
|
||||
python_url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user