Fix Embed.to_dict to work with TZ aware datetime objects.
This commit is contained in:
1 parent
3527203e07
commit
70c5f1723f
1 file changed
+1
-1
+1
-1
@@ -509,7 +509,7 @@ class Embed:
|
||||
pass
|
||||
else:
|
||||
if timestamp:
|
||||
result['timestamp'] = timestamp.isoformat()
|
||||
result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat()
|
||||
|
||||
# add in the non raw attribute ones
|
||||
if self.type:
|
||||
|
||||
Reference in new issue
Block a user