diff options
| author | 2021-03-30 11:32:11 -0700 | |
|---|---|---|
| committer | 2021-03-30 11:49:52 -0700 | |
| commit | b71a1e5d595d0775ffc1b4f502b9fc5efc3ca18d (patch) | |
| tree | 8c49e2554e57044e34b675be0b4978f077426f1c /tests/test_base.py | |
| parent | Update arrow to 1.0.3 (diff) | |
HelpChannels: use aware datetimes everywhere
Fix issues converting timestamps to datetimes and vice-versa. The main
culprit id `datetime.timestamp()`, which always assumes naïve objects
are in local time. That behaviour conflicts with discord.py, which
returns naïve objects in UTC rather than local time. Switching from
`utcfromtimestamp` to `fromtimestamp` was incorrect since the latter
also assumes the timestamp is in local time.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions