Skip to content

Conversation

@JaroslavHerber
Copy link
Contributor

The XS_DATE_TIME_PATTERN in Util.java was previously limited to parsing ISO 8601 date-times that use a literal 'T' or 't' as the separator between the date and time components.

However, some content providers and metadata sources use a space character as the separator (e.g., "2025-10-28 12:09:41.913000+00:00"). This caused Util.parseXsDateTime to fail when parsing these valid, albeit non-standard, date-time strings, leading to potential parsing errors for certain media streams.

This commit updates the regular expression by adding a space to the character class [Tt], making it [Tt ]. This change extends parsing support to include date-times with a space separator while maintaining full compatibility with the standard 'T'/'t' separators.

The `XS_DATE_TIME_PATTERN` in `Util.java` was previously limited to parsing ISO 8601 date-times that use a literal 'T' or 't' as the separator between the date and time components.

However, some content providers and metadata sources use a space character as the separator (e.g., "2025-10-28 12:09:41.913000+00:00"). This caused `Util.parseXsDateTime` to fail when parsing these valid, albeit non-standard, date-time strings, leading to potential parsing errors for certain media streams.

This commit updates the regular expression by adding a space to the character class `[Tt]`, making it `[Tt ]`. This change extends parsing support to include date-times with a space separator while maintaining full compatibility with the standard 'T'/'t' separators.
@JaroslavHerber
Copy link
Contributor Author

@icbaker icbaker self-assigned this Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants