react-add-to-calendar icon indicating copy to clipboard operation
react-add-to-calendar copied to clipboard

Issues in generated ics file

Open harish-aka-shivi opened this issue 4 years ago • 0 comments

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.

harish-aka-shivi avatar Apr 21 '20 08:04 harish-aka-shivi