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

Wrong event times #419

Open
sunkup opened this issue Sep 11, 2024 · 7 comments
Open

Wrong event times #419

sunkup opened this issue Sep 11, 2024 · 7 comments
Labels
bug Something isn't working dependent Depends on other issues/PRs

Comments

@sunkup
Copy link
Member

sunkup commented Sep 11, 2024

Thunderbird (and apparently other calendar software) imports the event in the following calendar (see details) as happening at 16:30, while ICSx5 imports it at 01:00 am (same day).

Until now all reported ics files have been generated by the Wordpress events plugin.

Discussed in #188

Depends on ical4j/ical4j#651

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//wp-events-plugin.com//6.5.2//EN
TZID:Europe/Berlin
X-WR-TIMEZONE:Europe/Berlin
BEGIN:VEVENT
UID:[email protected]
DTSTART;TZID=Europe/Berlin:20240925T163000
DTEND;TZID=Europe/Berlin:20240925T180000
DTSTAMP:20240910T154945Z
URL:https://dokus.uni-stuttgart.de/events/dokus-sitzung-2024-09-24/
SUMMARY:DoKUS-Sitzung
DESCRIPTION:Die DoKUS-Sitzung
END:VEVENT
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
DTSTART:20240331T030000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20241027T020000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20250330T030000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20251026T020000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20260329T030000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
END:DAYLIGHT
END:VTIMEZONE
END:VCALENDAR
@sunkup sunkup added the bug Something isn't working label Sep 11, 2024
@sunkup sunkup added this to the 2.2.4 milestone Sep 11, 2024
@ArnyminerZ
Copy link
Member

ArnyminerZ commented Sep 12, 2024

I think, as far as I can remember, that we couldn't do much, it had to be fixed by WEM (edit: or at least ical4j)

@sunkup
Copy link
Member Author

sunkup commented Sep 12, 2024

Correct. Unfortunately we are on the final release of ical4j and won't be able to update to 4.x.x without a lot of work - not to mention DAVx5 would have to get updated at the same time, unless we create a separate branch in ical4android.

I wanted to check whether the issue also occurs with ical4j 4.0.4.

@ArnyminerZ
Copy link
Member

I wanted to check whether the issue also occurs with ical4j 4.0.4.

We can try on 4.0.4 using the test I made for ical4j/ical4j#651, I think it shouldn't be too much. Though yes, migration to ical4j 4.x will be a big thing. Without thinking much into it, are really DAVx⁵ and ICSx⁵ going to be affected if we upgrade and migrate to ical4j in ical4android? I mean, maybe return types on some places will be changed to the new ones, but we can really keep the old syntax, with the old types, and deprecate those methods in favor of the new ones. It will be a bit more work (though I don't think that much), and will make migration in the apps really easier, since if we take the time to add proper ReplaceWith attributes, pretty much everything could be done automatically through the IDE.

Again, I haven't really looked at it since a lot of time ago, but I don't see why we couldn't.

@sunkup
Copy link
Member Author

sunkup commented Sep 12, 2024

We can try on 4.0.4 using the test I made for ical4j/ical4j#651, I think it shouldn't be too much.

Your test does not fail anymore. Not sure why, but maybe because we are in daylight saving time now? I tried with another example from the discussion which still fails in ical4j 3.2.19 and got a parse exception with ical4j 4.0.4 ical4j/ical4j#651 (comment) .

@sunkup sunkup removed this from the 2.2.4 milestone Sep 12, 2024
@sunkup
Copy link
Member Author

sunkup commented Sep 12, 2024

Will probably not be able to solve this within the next version.

@sunkup sunkup added the dependent Depends on other issues/PRs label Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

@q-wertz
Copy link

q-wertz commented Oct 14, 2024

I don't really know why, but the times are now correct in my phones calendar...
Cannot really see a change in Wordpress Events Manager and I also think there was no new ICSx5 version.
Just noticed yesterday, that the events have the correct time...

Some time ago I changed this setting in Events Manager to "No" but didn't see any improvement. Maybe it just took some time for sync?
image

On the other hand side the current ics

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//wp-events-plugin.com//6.6.1//EN
TZID:Europe/Berlin
X-WR-TIMEZONE:Europe/Berlin
BEGIN:VEVENT
UID:[email protected]
DTSTART;TZID=Europe/Berlin:20241022T163000
DTEND;TZID=Europe/Berlin:20241022T180000
DTSTAMP:20241008T183142Z
URL:https://dokus.uni-stuttgart.de/events/dokus-sitzung-2024-10-29/
SUMMARY:DoKUS-Sitzung
CATEGORIES:DoKUS-Sitzung
END:VEVENT
[...]

looks the same way to me as reported earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependent Depends on other issues/PRs
Projects
None yet
Development

No branches or pull requests

3 participants