-
Notifications
You must be signed in to change notification settings - Fork 11
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
Time of Event not correct with Events from Wordpress Events Manager #112
Comments
Could reproduce the problem. @ArnyminerZ Can you please create a new JUnit test that runs outside Android instrumentation (in
If you then get the
However it's at 01⁰⁰ here. If you can confirm, please create an issue in ical4j with the ical4android-independent test and mark this issue as dependence. |
I've created this test: class WordpressEventsManagerTest {
@Test
fun test_parsing() {
val calendar = CalendarBuilder().build(
StringReader(
"BEGIN:VCALENDAR\n" +
"VERSION:2.0\n" +
"BEGIN:VEVENT\n" +
"UID:[email protected]\n" +
"DTSTART;TZID=Europe/Berlin:20230905T200000\n" +
"DTEND;TZID=Europe/Berlin:20230905T210000\n" +
"SUMMARY:xxxxxxxxxxxxxxxxxxx\n" +
"END:VEVENT\n" +
"BEGIN:VTIMEZONE\n" +
"TZID:Europe/Berlin\n" +
"BEGIN:DAYLIGHT\n" +
"DTSTART:20230326T030000\n" +
"TZOFFSETFROM:+0100\n" +
"TZOFFSETTO:+0200\n" +
"TZNAME:CEST\n" +
"END:DAYLIGHT\n" +
"BEGIN:STANDARD\n" +
"DTSTART:20231029T020000\n" +
"TZOFFSETFROM:+0200\n" +
"TZOFFSETTO:+0100\n" +
"TZNAME:CET\n" +
"END:STANDARD\n" +
"BEGIN:DAYLIGHT\n" +
"DTSTART:20240331T030000\n" +
"TZOFFSETFROM:+0100\n" +
"TZOFFSETTO:+0200\n" +
"TZNAME:CEST\n" +
"END:DAYLIGHT\n" +
"BEGIN:STANDARD\n" +
"DTSTART:20241027T020000\n" +
"TZOFFSETFROM:+0200\n" +
"TZOFFSETTO:+0100\n" +
"TZNAME:CET\n" +
"END:STANDARD\n" +
"END:VTIMEZONE\n" +
"END:VCALENDAR"
)
)
val event = calendar.getComponent<VEvent>(Component.VEVENT)
assert(event.startDate.value == "20230905T200000") {
"Start date does not match. Expected: <20230905T200000>. Actual: <${event.startDate.value}>"
}
}
} And it fails with |
This PR/issue depends on: |
Discussed in bitfireAT/icsx5#149
Originally posted by derlucas April 21, 2023
I have trouble using the App with Calendars from Events Manager Wordpress Plugin.
The Events are saved with Timezone "Berlin" at 19:00 and shown correctly on the Wordpress Site. In the ICS file the Entry is like this:
DTSTART;TZID=Europe/Berlin:20230421T190000 DTEND;TZID=Europe/Berlin:20230421T235900
But in my Android Calendar (Simple Mobile Tools Calendar the Event is show at 01:00 in the night instead of 19:00. I tested the Google Calendar App too, and it shows the same false Time.
What would be the best way to find the root of the Issue?
Depends on ical4j/ical4j#651
The text was updated successfully, but these errors were encountered: