Fix Embed.to_dict to work with TZ aware datetime objects.
This commit is contained in:
parent
3527203e07
commit
70c5f1723f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user