diff options
| author | Rapptz <[email protected]> | 2019-03-15 05:56:01 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-15 05:56:01 -0400 |
| commit | 70c5f1723ff5c872e37c3993a7843f6493f0c6aa (patch) | |
| tree | de058c1c09a5f9bd471bf271c788906963bb6984 /discord/embeds.py | |
| parent | [commands] Redesign HelpFormatter into HelpCommand (diff) | |
| download | discord.py-70c5f1723ff5c872e37c3993a7843f6493f0c6aa.tar.xz discord.py-70c5f1723ff5c872e37c3993a7843f6493f0c6aa.zip | |
Fix Embed.to_dict to work with TZ aware datetime objects.
Diffstat (limited to 'discord/embeds.py')
| -rw-r--r-- | discord/embeds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/embeds.py b/discord/embeds.py index b756d55f..5dcc92a8 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -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: |