Python's datetime module is one of those bits of code that tends not to do what one would expect them to do. I have come to adopt some extra usage guidelines in order to preserve my sanity:
While working on my website projects today I had the idea to use HTML/JS instead of a IP database to localize the dates and times shown on the websites. Here are the snippets to use the JS snippets as filters for Django running on Google App Engine. You can use those filters on datetime objects.