Skip to content

Commit

Permalink
Provide retrocompatibility with suntime version needing tz
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Mar 5, 2025
1 parent 33e2cb9 commit 1a491d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plotly_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def sunrise_sunset_scatter(date_range):
current_date = start_date

for current_date in date_range:
sun_rise = sun.get_local_sunrise_time(current_date)
sun_dusk = sun.get_local_sunset_time(current_date)
sun_rise = sun.get_local_sunrise_time(current_date, None)
sun_dusk = sun.get_local_sunset_time(current_date, None)

sun_rise_time = float(sun_rise.hour) + float(sun_rise.minute) / 60.0
sun_dusk_time = float(sun_dusk.hour) + float(sun_dusk.minute) / 60.0
Expand Down

0 comments on commit 1a491d9

Please sign in to comment.