Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support timezone data in iso date strings
The latest release of the isodate package (0.7.2) doesn’t handle timezone information for dates. While this is indeed not valid according to the ISO specs we want to handle it anway. At a workaround by stripping the timezone data ourselves
- Loading branch information
0bf80d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not take into account negative time zones, I'm getting this error:
isodate.isoerror.ISO8601Error: Unrecognised ISO 8601 date format: '2024-08-21-10:00'
0bf80d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about to take the first 10 characters of the string if string has more than 10?
Also, I have solve this problem fixing the version to the last one that works well in my requirements file.