GithubHelp home page GithubHelp logo

Comments (9)

arnaudq avatar arnaudq commented on May 25, 2024

I dont know who generated this file but in general, having a DTSTART with VALUE=DATE and a TZID, while not illegal, does not make much sense.

See http://tools.ietf.org/html/rfc5545#section-3.2.29

<<
The "TZID" property parameter MUST NOT be applied to DATE
properties and DATE-TIME or TIME properties whose time values are
specified in UTC.

from ical4j.

benfortuna avatar benfortuna commented on May 25, 2024

Further to what Arnaud said, ideally in ical4j a Date property wouldn't even have a timezone, but due to the limitations of the implementation we set it to UTC by default. Eventually if we can implement the new date/time api (jsr-310) this can hopefully be fixed.

In the meantime though, there is a workaround that may suit you, which is to override the default behaviour and use the local timezone for Date properties. You can enable this by adding the following flag to your ical4j.properties file:

net.fortuna.ical4j.timezone.date.floating=true

from ical4j.

solomax avatar solomax commented on May 25, 2024

Actually there is implementation of JSR-310: http://www.threeten.org/
But it is for Java7 .... (which is almost at the EOL)

from ical4j.

benfortuna avatar benfortuna commented on May 25, 2024

Yes we have a branch dedicated to integrating the java 7 backport here:

https://github.com/ical4j/ical4j/tree/jsr-310

It may be quite a challenge, but time-willing we'll make some progress on that soon. Feel free to fork and contribute if you are able.

from ical4j.

solomax avatar solomax commented on May 25, 2024

Will try

from ical4j.

atnak avatar atnak commented on May 25, 2024

See http://tools.ietf.org/html/rfc5545#section-3.2.29

Thanks for that, extremely informative.

Further to what Arnaud said, ideally in ical4j a Date property wouldn't even have a timezone, but due to the limitations of the implementation we set it to UTC by default. Eventually if we can implement the new date/time api (jsr-310) this can hopefully be fixed.

Thanks for the insight. I'm now more confident about converting Period.getStart() into a LocalDate.

from ical4j.

jeff303 avatar jeff303 commented on May 25, 2024

We are experiencing this problem as well, but in our case, the DTSTART string is generated by ical4j itself. Working on producing a test case now.

from ical4j.

NoSubstitute avatar NoSubstitute commented on May 25, 2024

I dont know who generated this file but in general, having a DTSTART with VALUE=DATE and a TZID, while not illegal, does not make much sense.

See http://tools.ietf.org/html/rfc5545#section-3.2.29

<<
The "TZID" property parameter MUST NOT be applied to DATE
properties and DATE-TIME or TIME properties whose time values are
specified in UTC.

I can't find that section in the RFC.

from ical4j.

NoSubstitute avatar NoSubstitute commented on May 25, 2024

Oh, maybe there was a typo in the URL and you really meant this one?
https://tools.ietf.org/html/rfc5545#section-3.2.19

from ical4j.

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.