SyntaxFix
Write A Post
Hire A Developer
Questions
In my opinion this is a design flaw of pytz library. It should be more reliable to specify a timezone using the offset, e.g.
pytz.construct("UTC-07:00")
which gives you Canada/Pacific timezone.