You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implies that for a single value, start_date is left empty and only end_date is set:
datetime
start_date
end_date
2012-07-02T00:00:00Z
None
2012-07-02 00:00
2012-07-02T00:00:00Z/..
2012-07-02 00:00
None
../2012-07-03T23:59:59Z
None
2012-07-03 00:00
I very much assume for a single datetime (the first case above) both start_date and end_date should be set to the same value?
(I can submit a PR if this is indeed a bug. It's just line 50 that should be changed from return None into return parse_rfc3339(values[0]). EDIT: also def validate_datetime would need a fix; see below.)
The text was updated successfully, but these errors were encountered:
The
datetime
attribute of a search request is defined to be an exact datetime, or a range with possible open ends on either side:But today, the
start_date
andend_date
properties are implemented as:stac-pydantic/stac_pydantic/api/search.py
Lines 46 to 62 in 79248a2
This implies that for a single value,
start_date
is left empty and onlyend_date
is set:2012-07-02T00:00:00Z
2012-07-02T00:00:00Z/..
../2012-07-03T23:59:59Z
I very much assume for a single
datetime
(the first case above) bothstart_date
andend_date
should be set to the same value?(I can submit a PR if this is indeed a bug. It's just line 50 that should be changed from
return None
intoreturn parse_rfc3339(values[0])
. EDIT: alsodef validate_datetime
would need a fix; see below.)The text was updated successfully, but these errors were encountered: