Monthly Archives: November 2014

The strange beast of PyTZ and datetime

The crux of this post is, make sure to never use datetime.replace(tzinfo=…) when working with PyTZ, use tz.localize(…) instead, otherwise you’ll end up with some very strange times. The PyTZ docs do mention this helper method as a way to … Continue reading

Posted in programming, python | Leave a comment