Skip to content

Fix datetime parsing for YYYY-MM-DDTHH:MM format#8719

Merged
timvisee merged 1 commit into
devfrom
fix/datetime-parse-t-separator-no-seconds
Apr 20, 2026
Merged

Fix datetime parsing for YYYY-MM-DDTHH:MM format#8719
timvisee merged 1 commit into
devfrom
fix/datetime-parse-t-separator-no-seconds

Conversation

@qdrant-cloud-bot

Copy link
Copy Markdown
Contributor

Summary

  • Fixes Datetime index does not accept all documented formats (e.g. YYYY-MM-DD'T'HH:MM) #8718 — the documented datetime format YYYY-MM-DDTHH:MM (e.g. 2023-02-08T10:49) was not accepted for indexing or range queries
  • Root cause: FromStr for DateTimePayloadType had %Y-%m-%d %H:%M (space separator, no seconds) but was missing %Y-%m-%dT%H:%M (T separator, no seconds)
  • Adds the missing format variant to the parsing chain and covers it with both unit and openapi tests

Test plan

  • Unit test test_datetime_deserialization::case_11_t_sep_without_seconds passes
  • Unit test test_datetime_deserialization::case_12_space_sep_without_seconds passes
  • Unit test test_datetime_deserialization::case_13_date_only passes
  • Openapi test test_datetime_indexing verifies payload with YYYY-MM-DDTHH:MM is indexed and queryable (CI)

Made with Cursor

…onds)

The documented format `2023-02-08T10:49` was not accepted because the
parser only had `%Y-%m-%d %H:%M` (space separator) but was missing
`%Y-%m-%dT%H:%M` (T separator). Add the missing format variant and
tests.

Closes #8718

Made-with: Cursor
@generall generall requested a review from timvisee April 19, 2026 22:14
@qdrant qdrant deleted a comment from coderabbitai Bot Apr 20, 2026

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@timvisee timvisee merged commit e160fb9 into dev Apr 20, 2026
20 of 21 checks passed
@timvisee timvisee deleted the fix/datetime-parse-t-separator-no-seconds branch April 20, 2026 08:00
VainJoker pushed a commit to VainJoker/qdrant that referenced this pull request Apr 21, 2026
…onds) (qdrant#8719)

The documented format `2023-02-08T10:49` was not accepted because the
parser only had `%Y-%m-%d %H:%M` (space separator) but was missing
`%Y-%m-%dT%H:%M` (T separator). Add the missing format variant and
tests.

Closes qdrant#8718

Made-with: Cursor

Co-authored-by: Cursor Agent <[email protected]>
timvisee pushed a commit that referenced this pull request May 8, 2026
…onds) (#8719)

The documented format `2023-02-08T10:49` was not accepted because the
parser only had `%Y-%m-%d %H:%M` (space separator) but was missing
`%Y-%m-%dT%H:%M` (T separator). Add the missing format variant and
tests.

Closes #8718

Made-with: Cursor

Co-authored-by: Cursor Agent <[email protected]>
@timvisee timvisee mentioned this pull request May 8, 2026
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