Closed HaimMichalashvili closed 1 year ago
I just wanted to express my gratitude for this commit that saved my day!
https://github.com/mangstadt/ez-vcard/commit/4b978e8cba83996502e1dead43368c8b7d26ecac
Even though the fix hasn't been released yet, I was able to download and pack the jar and manually add it to my project's pom.
Thank you so much for your help!
Glad you got it working!
ez-vcard version 0.12.1 has been released, which includes this bug fix!
Hello everyone,
I'm having trouble parsing a raw text vCard. Here's the vCard:
Unfortunately, an exception was thrown and the package did not handle it. The error message was: "java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0".
I understand that
00000000
is not a valid date type, but my concern is that I cannot get a parsed Vcard object with valid fields such as N, FN, TEL, etc. (at least saving the valid fields)To parse, Im using the code below:
vcard = vCardReader.readNext();
After debugging the package, I discovered that the exception was thrown from the file called VCardDateFormat.class, specifically on line 72:
LocalDate date = LocalDate.of(p.year(), p.month(), p.date());
(The exception has not been handled)related to: [https://github.com/mangstadt/ez-vcard/issues/134#issue-1743648284]()
Any help would be greatly appreciated.