ruff fixes

This commit is contained in:
Ian Renton
2026-09-18 18:38:35 +01:00
parent 40033d122e
commit 1a1743d11c
18 changed files with 34 additions and 21 deletions
@@ -118,7 +118,9 @@ class NOAA3dayForecast(HTTPSolarConditionsProvider):
column_dates = []
for month_str, day_str in date_matches:
try:
column_dates.append(datetime.strptime(f"{day_str} {month_str} {year}", "%d %b %Y").date())
column_dates.append(
datetime.strptime(f"{day_str} {month_str} {year}", "%d %b %Y").replace(tzinfo=timezone.utc).date()
)
except ValueError:
logger.warning(f"NOAA K-index forecast: could not parse date: {month_str} {day_str} {year}")
return None