id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 22598 make_aware throws AmbiguousTimeError exception trott@… nobody "When using the pytz package, the ''make_aware()'' utility function occasionally throws an AmbiguousTimeError or NonExistentTimeError exception. As the pytz maintainer explain, some dates time values may not be localizable (using the pytz.localize() function) when the optional is_dst Parameter is None. I don't think, that Django should throw an exception in these cases, that results in a ""show stopper"" behavior. Instead, I would prefer to just ""guess"" it the is_dst parameter when these Exceptions occur. That may result in a 50% chance to get a 1 hour miscalculation – but until we don't know a better way, I just prefer that instead of having some values not saved at all... Anyway, I attached a little patch to prevent this nasty Exceptions." New feature closed Utilities dev Normal fixed make_aware Ready for checkin 1 0 0 0 0 0