Get token year and month

main
Bob Mottram 2022-02-23 09:56:58 +00:00
parent 552cf06fb6
commit 7761dd3644
1 changed files with 2 additions and 2 deletions

View File

@ -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 += \