Commit 2d49243
fix: ensure datetime in post request is normalized (#543)
**Description:**
Currently, in `POST` requests to `/search`, with datetime values are not
normalized as they are in `GET` requests to `/search`, which can cause
different results to be returned for the same datetime filter. For
example:
`POST` request to `/search` with
`datetime=2025-11-20T09:54:38Z/2025-11-20T09:54:38Z` returns an item
with `2025-11-20T09:54:38.196614Z`, whereas a GET request with the same
datetime filter does not which is expected behavior. This PR ensures
that datetime values in `POST` requests are normalized in the same way
as in `GET` requests.
**PR Checklist:**
- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [x] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [x] Changes are added to the changelog
---------
Co-authored-by: Yuri Zmytrakov <yzmytrakovNB@yzmytrakovNB.local>1 parent 6f74a12 commit 2d49243
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
793 | 794 | | |
794 | 795 | | |
795 | | - | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
| |||
0 commit comments