diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4956a748..4d0447be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,3 +7,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + with: + src: './asf_search' \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d939deb..16aa6754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - --> +------ +## [v8.0.1](https://github.com/asfadmin/Discovery-asf_search/compare/v8.0.0...v8.0.1) +### Fixed +- Fixed setting end date timezone when translating search opts to CMR opts + ------ ## [v8.0.0](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.0...v7.2.0) ### Added diff --git a/asf_search/CMR/translate.py b/asf_search/CMR/translate.py index d4b8359e..959df7f7 100644 --- a/asf_search/CMR/translate.py +++ b/asf_search/CMR/translate.py @@ -202,7 +202,7 @@ def fix_date(fixed_params: Dict[str, Any]): fixed_params['start'] if 'start' in fixed_params else '1978-01-01T00:00:00Z' ) fixed_params['end'] = ( - fixed_params['end'] if 'end' in fixed_params else datetime.now(datetime.UTC).isoformat() + fixed_params['end'] if 'end' in fixed_params else datetime.now(timezone.utc).isoformat() ) fixed_params['season'] = ( ','.join(str(x) for x in fixed_params['season']) if 'season' in fixed_params else ''