Fix datetime localization in tests and pin pytz.