Code Monkey home page Code Monkey logo

Comments (3)

patricktokeeffe avatar patricktokeeffe commented on August 26, 2024

Hi, I opened #561 last summer 🙂. I'm migrating to NC12 and smacked into this again. Are we mostly just waiting for kewisch/ical.js#260 to move?

I did find this block in icalFactory.js, which looks relevant:

		event.updatePropertyWithValue('created', ICAL.Time.now());
		event.updatePropertyWithValue('dtstamp', ICAL.Time.now());
		event.updatePropertyWithValue('last-modified', ICAL.Time.now());
		event.updatePropertyWithValue('uid', uid);

		//add a dummy dtstart, so it's a valid ics
		event.updatePropertyWithValue('dtstart', ICAL.Time.now());

Would it be completely, totally irrational to do something like this instead? 😇

                tstamp = ICAL.Time.now() + "Z"
		event.updatePropertyWithValue('created', tstamp);
		event.updatePropertyWithValue('dtstamp', tstamp);
		event.updatePropertyWithValue('last-modified', tstamp);
		event.updatePropertyWithValue('uid', uid);
		event.updatePropertyWithValue('dtstart', tstamp);

Or maybe there's already proper js to do?:

                tstamp = Time.ToUTC(ICAL.Time.now())
                ...

from calendar.

tenbob avatar tenbob commented on August 26, 2024

This issue prevents a user at mail.com from subscribing to an iCalendar hosted on Nextcloud. I verified this by manually adding 'Z' after each date-time. Since NC is non RFC compliant, could this be bumped, please.

from calendar.

simonspa avatar simonspa commented on August 26, 2024

I have a similar issue, where even a time zone ID is specified in DTSTAMP, which fails e.g. other iCal parsers (ical4j/ical4j#303).

The affected calendar events are not created using the calendar app but have been imported. Is there a way that existing entries could be validated (or that editing them fixes the issue)?

from calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.