diff --git a/happening.py b/happening.py index 6b24bd1f8..96725ea3f 100644 --- a/happening.py +++ b/happening.py @@ -369,8 +369,8 @@ def _icalendar_day(base_dir: str, nickname: str, domain: str, event_end = \ _ical_date_string(event_end.strftime("%Y-%m-%dT%H:%M:%SZ")) - token_year = int(event_start.split('-')[0]) - token_month_number = int(event_start.split('-')[1]) + token_year = int(event_start[4:]) + token_month_number = int(event_starttimestamp[4:][:2]) uid = _dav_encode_token(token_year, token_month_number, post_id) ical_str += \