Skip to content

Couldn't parse calendars - time Format issue? #64

Answered by rfc2822
LeLieb asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Caused by: java.text.ParseException: Unparseable date: ":20220913T124054Z"
at java.text.DateFormat.parse(DateFormat.java:362)
at net.fortuna.ical4j.model.DateTime.setTime(DateTime.java:418)
at net.fortuna.ical4j.model.DateTime.(DateTime.java:349)
at net.fortuna.ical4j.model.property.DateProperty.setValue(DateProperty.java:139)
at net.fortuna.ical4j.model.property.Acknowledged.(Acknowledged.java:124)

Looks like there is an ACKNOWLEDGED alarm with two colons:

ACKNOWLEDGED::20220913T124054Z

This is an invalid iCalendar. Can you have a look at the ics file? There should by only one : (see https://www.rfc-editor.org/rfc/rfc9074#name-acknowledged-property).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@LeLieb
Comment options

Answer selected by LeLieb
Comment options

You must be logged in to vote
2 replies
@rfc2822
Comment options

@gubrist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants