GithubHelp home page GithubHelp logo

Comments (5)

odin568 avatar odin568 commented on September 21, 2024

Issue not only happening with Wordpress Events Manager, also have a case with eluceo/ical

Coming from bitfireAT/icsx5#198

from ical4j.

cbix avatar cbix commented on September 21, 2024

I'm observing the same issue with iCal generated by the Wordpress Event Calendar Plugin. Two calendar feeds using the Europe/Berlin timezone to validate:

from ical4j.

cbix avatar cbix commented on September 21, 2024

Issue seems to be related to timezone definition.
This (for example) causes the issue:

BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:20240331T010000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:20241027T010000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:20250330T010000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:20251026T010000
END:STANDARD
END:VTIMEZONE

While this works as expected:

BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:DAYLIGHT
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
END:VTIMEZONE

from ical4j.

benfortuna avatar benfortuna commented on September 21, 2024

Issue seems to be related to timezone definition. This (for example) causes the issue:

If I'm not mistaken, that first example doesn't include any current timezone information as the DTSTART values are all in the future.

from ical4j.

cbix avatar cbix commented on September 21, 2024

the DTSTART values are all in the future

Good catch, I just reported this to the plugin's support forum. Seems like a few php-based generators use DateTimeZone::getTransitions($start, $end) which gives you a fixed set of tz transitions as opposed to proper rrules.

What's still weird is that while all timezone DTSTARTs are in the future, it also causes later events within those intervals to be parsed with the wrong time.

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.