Skip to content

CDRIVER-5572 Allow ':' in timezone #1599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

Roman-Koshelev
Copy link
Contributor

Could not parse "2024-05-13T08:46:14.869+00:00" as date: could not parse timezone

standard ISO8601 4.2.5.2
Basic format: hhmmssthhmm Example: 152746+0100
Extended format: hh:mm:ss+hh:mm Example: 15:27:46+01:00

According to the standard the symbol ':' is acceptable and should even be used

@kevinAlbs kevinAlbs self-requested a review May 14, 2024 14:26
@kevinAlbs kevinAlbs changed the title Allow ':' in timezone CDRIVER-5572 Allow ':' in timezone May 15, 2024
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! I suggest applying commits from this branch to include a test fix, error message update, and comment.

For added background: I expect this is a bug. The Extended JSON specification references:

ISO-8601 Internet Date/Time Format as described in RFC-3339

It links to https://tools.ietf.org/html/rfc3339#section-5.6 in the footnote. RFC3339 expects a colon:

time-numoffset = ("+" / "-") time-hour ":" time-minute

@kevinAlbs kevinAlbs merged commit a8513a2 into mongodb:master May 16, 2024
43 of 45 checks passed
kevinAlbs pushed a commit that referenced this pull request May 16, 2024
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