1 parent
66af80511f
commit
03616b91db
1 file changed
+4
-1
+4
-1
@@ -509,7 +509,10 @@ class Embed:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if timestamp:
|
if timestamp:
|
||||||
result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat()
|
if timestamp.tzinfo:
|
||||||
|
result['timestamp'] = timestamp.astimezone(tz=datetime.timezone.utc).isoformat()
|
||||||
|
else:
|
||||||
|
result['timestamp'] = timestamp.replace(tzinfo=timezone.utc).isoformat()
|
||||||
|
|
||||||
# add in the non raw attribute ones
|
# add in the non raw attribute ones
|
||||||
if self.type:
|
if self.type:
|
||||||
|
|||||||
Reference in new issue
Block a user