mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 05:06:33 +01:00
fix #8: force start-time to the beginning of the day
This commit is contained in:
@@ -118,7 +118,7 @@ class Source:
|
||||
# parse ics file
|
||||
calendar = icalendar.Calendar.from_ical(data)
|
||||
|
||||
start_date = datetime.datetime.now()
|
||||
start_date = datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
|
||||
end_date = start_date.replace(year=start_date.year + 1)
|
||||
|
||||
events = recurring_ical_events.of(calendar).between(start_date, end_date)
|
||||
|
||||
Reference in New Issue
Block a user