Actual vs Expected behavior
Expected behavior: The date '2023-12-04Z' should be parsed as a valid date.
Actual behavior: Luxon parses '2023-12-04Z' as an invalid date.
Desktop (please complete the following information):
OS: MacOs
Browser 122.0.6261.94 (
Luxon version 3.4.4
Your timezone CET
Additional context
This issue occurs when attempting to parse ISO 8601 dates with Luxon. The 'Z' suffix indicates that the date is in UTC time, and it should be parsed correctly.
Describe the bug When using Luxon's DateTime.fromISO() function with the string '2023-12-04Z', the date is parsed as invalid.
To Reproduce Minimal code example:
Actual vs Expected behavior Expected behavior: The date '2023-12-04Z' should be parsed as a valid date. Actual behavior: Luxon parses '2023-12-04Z' as an invalid date.
Desktop (please complete the following information):
Additional context This issue occurs when attempting to parse ISO 8601 dates with Luxon. The 'Z' suffix indicates that the date is in UTC time, and it should be parsed correctly.