aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-03-30 11:32:11 -0700
committerGravatar MarkKoz <[email protected]>2021-03-30 11:49:52 -0700
commitb71a1e5d595d0775ffc1b4f502b9fc5efc3ca18d (patch)
tree8c49e2554e57044e34b675be0b4978f077426f1c /tests
parentUpdate 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')
0 files changed, 0 insertions, 0 deletions