Benchmark code not working?

maybe I am using a different version of the python module, but I am getting the error for

Specifically for:

search = catalog.search(
    collections=["sentinel-2-l2a", "landsat-c2-l2"], bbox=bbox, datetime=date_range
)

if i use: datetime=‘2021-09-12T/2021-09-27T’ as shown in the benchmark code
Exception: invalid datetime component: 2021-09-12T

I follow the format at Usage — pystac-client 0.6.0 documentation and set
datetime=‘2021-09-12T00:00:00Z/2021-09-27T00:00:00Z’

the search is successful but only return 39 items, instead of 46

Where did I go wrong? Thanks

if i use: datetime=‘2021-09-12T/2021-09-27T’ as shown in the benchmark code
Exception: invalid datetime component: 2021-09-12T

Remove the T from datetime, i.e 2021-09-12/2021-09-27 it should work.

I follow the format at Usage — pystac-client 0.6.0 documentation and set
datetime=‘2021-09-12T00:00:00Z/2021-09-27T00:00:00Z’

Depending on the sample point you are looking at, the number of tiles being covered by Sentinel or Landsat might vary.

Thanks @srmsoumya for sorting this out!