diff options
author | 2020-08-16 11:06:47 -0700 | |
---|---|---|
committer | 2020-08-16 11:12:17 -0700 | |
commit | bebe09b74b24e140581cb317f300d2bbad8999df (patch) | |
tree | 8d6b0e1e93cf32cbfba6b4ad1b8ab262fd23d409 /tests/_autospec.py | |
parent | Silence: 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