Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Sentinel2 default start_date out of range #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws_sat_api/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def sentinel2(utm: Union[str, int], lat: str, grid: str,
s2_bucket = f'{sentinel_bucket}-{level}'
request_pays = True

start_date = start_date or datetime(2015, 1, 1)
start_date = start_date or datetime(2015, 1, 1, tzinfo=timezone.utc)
end_date = end_date or datetime.now(timezone.utc)

# Converts the time zone or sets a new tz for naive objects.
Expand Down