Skip to content

Commit 516f92a

Browse files
Merge branch 'main' into CAT-1619
2 parents 5c468a5 + 6f74a12 commit 516f92a

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
steps:
7777
- name: Check out repository code
78-
uses: actions/checkout@v5
78+
uses: actions/checkout@v6
7979

8080
- name: Setup Python
8181
uses: actions/setup-python@v6

.github/workflows/deploy_mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout main
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222

2323
- name: Set up Python 3.11
2424
uses: actions/setup-python@v6

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515

1616
- name: Set up Python 3.11
1717
uses: actions/setup-python@v6
@@ -80,7 +80,7 @@ jobs:
8080

8181
steps:
8282
- name: Checkout repository
83-
uses: actions/checkout@v5
83+
uses: actions/checkout@v6
8484

8585
- name: Set up QEMU
8686
uses: docker/setup-qemu-action@v3

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1414
### Fixed
1515

1616
- Fix incorrect min/max date formatting in `apply_datetime_filter` for `POST` requests. [#539](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/539)
17+
- Fixed datetime filtering for .0Z milliseconds to preserve precision in apply_filter_datetime, ensuring only items exactly within the specified range are returned. [#535](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/535)
1718

1819
### Removed
1920

stac_fastapi/core/stac_fastapi/core/datetime_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def normalize(dt):
3232
dt_utc = MIN_DATE_NANOS
3333
if dt_utc > MAX_DATE_NANOS:
3434
dt_utc = MAX_DATE_NANOS
35-
return dt_utc.isoformat(timespec="auto").replace("+00:00", "Z")
35+
dt_normalized = dt_utc.isoformat(timespec="auto").replace("+00:00", "Z")
36+
if "." not in dt_normalized:
37+
dt_normalized = dt_normalized.replace("Z", ".0Z")
38+
return dt_normalized
3639

3740
if not isinstance(date_str, str):
3841
return f"{MIN_DATE_NANOS.isoformat(timespec='auto').replace('+00:00','Z')}/{MAX_DATE_NANOS.isoformat(timespec='auto').replace('+00:00','Z')}"

0 commit comments

Comments
 (0)