adjust all day events from ical
This commit is contained in:
@@ -33,9 +33,8 @@ class Event():
|
||||
if isinstance(date_value, datetime):
|
||||
dt_end = date_value
|
||||
elif isinstance(date_value, date):
|
||||
d_end = date_value
|
||||
d_end = date_value - timedelta(days=1)
|
||||
dt_end = datetime(d_end.year, d_end.month, d_end.day,tzinfo=datetime.now(timezone.utc).astimezone().tzinfo)
|
||||
date_value = dt_end
|
||||
else:
|
||||
raise Exception
|
||||
|
||||
|
||||
Reference in New Issue
Block a user