aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/embeds.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/discord/embeds.py b/discord/embeds.py
index bc937b50..2e18687b 100644
--- a/discord/embeds.py
+++ b/discord/embeds.py
@@ -460,14 +460,7 @@ class Embed:
pass
else:
if timestamp:
- try:
- aware = timestamp.astimezone(datetime.timezone.utc)
- except ValueError:
- # naive date time
- result['timestamp'] = timestamp.isoformat()
- else:
- result['timestamp'] = aware.isoformat().replace('+00:00', 'Z')
-
+ result['timestamp'] = timestamp.isoformat()
# add in the non raw attribute ones
if self.type: