mirror of https://gitlab.com/bashrc2/epicyon
Get token year and month
parent
552cf06fb6
commit
7761dd3644
|
@ -369,8 +369,8 @@ def _icalendar_day(base_dir: str, nickname: str, domain: str,
|
||||||
event_end = \
|
event_end = \
|
||||||
_ical_date_string(event_end.strftime("%Y-%m-%dT%H:%M:%SZ"))
|
_ical_date_string(event_end.strftime("%Y-%m-%dT%H:%M:%SZ"))
|
||||||
|
|
||||||
token_year = int(event_start.split('-')[0])
|
token_year = int(event_start[4:])
|
||||||
token_month_number = int(event_start.split('-')[1])
|
token_month_number = int(event_starttimestamp[4:][:2])
|
||||||
uid = _dav_encode_token(token_year, token_month_number, post_id)
|
uid = _dav_encode_token(token_year, token_month_number, post_id)
|
||||||
|
|
||||||
ical_str += \
|
ical_str += \
|
||||||
|
|
Loading…
Reference in New Issue