Commit e9b1fa4 changed the source for get_sunrise_time and get_sunset_time so that the date parameter defaults to datetime.today(). Previously, it was the at_date parameter and defaulted to datetime.datetime.now().
Unfortunately, those are two different types. today() is a datettime.date, and now() is a datetime.datetime. The get_sun_timedelta method that both of these calls expects a datetime.datetime, resulting in a TypeError from utcoffset.
Commit e9b1fa4 changed the source for
get_sunrise_time
andget_sunset_time
so that thedate
parameter defaults todatetime.today()
. Previously, it was theat_date
parameter and defaulted todatetime.datetime.now()
.Unfortunately, those are two different types.
today()
is adatettime.date
, andnow()
is adatetime.datetime
. Theget_sun_timedelta
method that both of these calls expects adatetime.datetime
, resulting in a TypeError fromutcoffset
.