Tag Archives: pytz

How (not) to screw up timezone processing in Python

If you use pytz without reading the documentation, you might think you can do this:

This is an easy way to utterly screw up your timezones. Never pass a tzinfo into the datetime constructor. Here’s why:

That’s simply the wrong time. 1:15 Chilean time should be 21:15 Pacific the previous day, not 22:58.… Read More »