dbba34eeb13381f16aadb7f1191cc201067534cb
The parse_isotime() function treats datetime strings without timezone designators as UTC rather than returning naive datetime objects as specified by ISO 8601. This behavior exists for historical reasons and backward compatibility. Update the docstring to clearly document this behavior and point users to alternatives (datetime.fromisoformat() or iso8601 library directly) for ISO 8601 compliant parsing of naive datetime strings. Add test to verify the documented behavior matches actual behavior. Closes-Bug: #1638124 Assisted-By: Claude Sonnet 4.5 <noreply@anthropic.com> Change-Id: Ib80e86d08cbe62217120d2aa191b0c65e4ef434f Signed-off-by: Pavlo Kostianov <pkostian@redhat.com>
oslo.utils
The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.
- Free software: Apache license
- Documentation: https://docs.openstack.org/oslo.utils/latest/
- Source: https://opendev.org/openstack/oslo.utils
- Bugs: https://bugs.launchpad.net/oslo.utils
- Release notes: https://docs.openstack.org/releasenotes/oslo.utils/
Description
Languages
Python
100%