dmfs / rfc5545-datetime

Implementation of RFC 5545 DATETIME
Apache License 2.0
8 stars 4 forks source link

It crash #1

Closed zbjumper closed 7 years ago

zbjumper commented 7 years ago

It crashed when I parse the string "P3600S" with Duration.parse();

dmfs commented 7 years ago

That's because P3600S is not a valid Duration as per RFC 5545, section 3.3.6. A valid Duration would be PT3600S.