Since Python 3.9 zoneinfo is available and datetime also has a timezone
module attribute which can be used. Also refactor the
utcnow/fromutctimestamp usage to according to this excellent blogpost.
https://blog.ganssle.io/articles/2019/11/utcnow.html
Most of these were suggested by PyCharm, and include everything from
little syntax issues and other bad smells to dead or bad code.
Signed-off-by: Dan McGee <dan@archlinux.org>
This should help cut down on the massive amount of emails I receive when
things go wrong on the production website.
Signed-off-by: Dan McGee <dan@archlinux.org>