react-add-to-calendar
react-add-to-calendar copied to clipboard
Issues in generated ics file
I was implementing Add to Calendar button for a project, I figured out there are some issues in creating ics file.
- The content lines should be delimited by CRLF (link). So it should be appended by "\r\n" instead of "\n".
- PRODID property is required in
ics
file structure. (link) - Similarly, DTSTAMP and UID are also required for the valid structure.
We can validate the ics file here.