From 7761dd36442f5595a204d52700906db624bf043c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Feb 2022 09:56:58 +0000 Subject: [PATCH] Get token year and month --- happening.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 += \