bpo-43295: Fix error handling of datetime.strptime format string '%z' by noormichael · Pull Request #24627 · python/cpython

Previously, datetime.strptime would match 'z' with the format string '%z' (for UTC offsets), throwing an IndexError by erroneously trying to parse 'z' as a timestamp. As a special case, '%z' matche...