Skip to content

Conversation

YuriZmytrakov
Copy link
Contributor

@YuriZmytrakov YuriZmytrakov commented Sep 1, 2025

Description:
Fixes an issue in the OS STAC /search endpoint where datetime filters overwrite milliseconds. The queries return products outside the specified range because the filter was rounding datetimes to full seconds. This change ensures that milliseconds are preserved, so datetime filtering returns correct results.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@YuriZmytrakov YuriZmytrakov marked this pull request as draft September 1, 2025 13:22
@YuriZmytrakov YuriZmytrakov force-pushed the CAT-1413 branch 7 times, most recently from 0501cb1 to bfb3c1a Compare September 1, 2025 16:32
Normalize function for datetime strings did not preserve milliseconds, causing the `/search`
endpoint return incorrect results. This change ensures that milliseconds are retained when normalized.
@YuriZmytrakov YuriZmytrakov changed the title fix format_datetime_range Ensure Normalize func preserves milliseconds precision Sep 1, 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.

1 participant