Convert datetimes to aware datetimes with UTC.

Naive datetimes will now be interpreted as local time throughout
the library.
This commit is contained in:
Rapptz committed 2021-04-04 23:54:08 -04:00
1 parent fd58371f53
commit ff7094ce96
15 files changed
+83 -61

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ class Sticker(Hashable):
@property
def created_at(self):
""":class:`datetime.datetime`: Returns the sticker's creation time in UTC as a naive datetime."""
""":class:`datetime.datetime`: Returns the sticker's creation time in UTC."""
return snowflake_time(self.id)
@property