aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-16 11:06:47 -0700
committerGravatar MarkKoz <[email protected]>2020-08-16 11:12:17 -0700
commitbebe09b74b24e140581cb317f300d2bbad8999df (patch)
tree8d6b0e1e93cf32cbfba6b4ad1b8ab262fd23d409 /tests/_autospec.py
parentSilence: reschedule silences on startup (diff)
Silence: use aware datetimes
`datetime.timestamp()` assumes naïve `datetime`s are in local time, so getting POSIX timestamps in UTC isn't easy for naïve ones. Technically, the timestamp's timezone doesn't matter if all code is on the same page and parsing it with the same timezone. Keeping it in the local timezone would be okay then, but I feel safer locking it to UTC explicitly.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions