We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0517b4b commit c067d0fCopy full SHA for c067d0f
stac_fastapi/core/stac_fastapi/core/datetime_utils.py
@@ -23,7 +23,8 @@ def normalize(dt):
23
return ".."
24
dt_obj = rfc3339_str_to_datetime(dt)
25
dt_utc = dt_obj.astimezone(timezone.utc)
26
- return dt_utc.isoformat(timespec="milliseconds").replace("+00:00", "Z")
+ rounded_dt = dt_utc.replace(microsecond=round(dt_utc.microsecond / 1000) * 1000)
27
+ return rounded_dt.isoformat(timespec="milliseconds").replace("+00:00", "Z")
28
29
if not isinstance(date_str, str):
30
return "../.."
0 commit comments