Comments (9)
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.
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.
Actually there is implementation of JSR-310: http://www.threeten.org/
But it is for Java7 .... (which is almost at the EOL)
from ical4j.
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.
Will try
from ical4j.
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.
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.
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.
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)
- java.lang.StackOverflowError on certain ICS files HOT 7
- "Unsupported unit: Weeks" exception from calculateRecurrenceSet()
- % character not supported in email address for Attendee/Organizer HOT 1
- Text property (e.g. DESCRIPTION) escapes DQUOTE without need HOT 3
- Request to update America/Mexico_City Timezone info HOT 2
- With the latest beta version, examples are out of date HOT 4
- Can't create properly formatted CONFERENCE property HOT 4
- Time of Event not correct with Events from Wordpress Events Manager HOT 5
- Wrong operator precedence in TemporalAmountAdapter.java v3.2.13
- nebula plugins should probably be removed - latest versions are no-op HOT 1
- calculateRecurrenceSet produces invalid data after DST shift HOT 7
- Unexpected Timezone offset with ical4j 4.0.0-rc1 HOT 2
- TZID prefix added to UTC datetimes HOT 2
- Update android minify receipe in https://www.ical4j.org/android/ for R8-Minify HOT 1
- Outlook ics "nested too deep" HOT 3
- Times of events are off by one hour HOT 1
- Validation does not spot quite simple contraints
- Cannot parse EMAIL="mailto:[email protected]" HOT 2
- Exchange is unable to actively parse ICS file, but Outlook 365 can parse it normally.
- extractor.ICalendarExtractor: Unable to parse icalendar with slashed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ical4j.