Skip to content

Commit

Permalink
fix attribute error when calling datetime.UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestfwilliams committed Aug 26, 2024
1 parent b9473fa commit 56aa9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asf_search/CMR/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit 56aa9a6

Please sign in to comment.