Skip to content

Commit 70f93ab

Browse files
committed
fix tz
1 parent 0e0d548 commit 70f93ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

download_analytics/anaconda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def collect_anaconda_downloads(
165165
previous = _get_previous_anaconda_downloads(output_folder, filename=PREVIOUS_ANACONDA_FILENAME)
166166
previous = previous.sort_values(TIME_COLUMN)
167167

168-
end_date = datetime.now(tz=None).date()
168+
end_date = datetime.now(tz=ZoneInfo('UTC')).date()
169169
start_date = end_date - timedelta(days=max_days)
170170
LOGGER.info(f'Getting daily anaconda data for start_date>={start_date} to end_date<{end_date}')
171171
date_ranges = pd.date_range(start=start_date, end=end_date, freq='D')

0 commit comments

Comments
 (0)