Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ics file generation (CLRF, absent fields: PRODID, UID, DTSTAMP) #553

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

MrsSima
Copy link
Contributor

@MrsSima MrsSima commented Jul 19, 2023

The library works perfectly with links creation, but I've found several issues when trying to create an ics file, it failed iCalendar validation, so here are several suggestions that worked in my case:

  • Changed \n to \r\n for the end of the line

  • Added PRODID (as event name), UID (random), DTSTAMP (new Date())

image

@AnandChowdhary
Copy link
Owner

This is great, thanks a ton!

Copy link
Owner

@AnandChowdhary AnandChowdhary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adding more randomness :)

@AnandChowdhary AnandChowdhary merged commit e4a2eaa into AnandChowdhary:master Jul 19, 2023
@FindingAnand
Copy link
Collaborator

🎉 This PR is included in version 2.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants