Events in the distant future have wrong date and time



  • Hi,
    I’m using nextcloud calendar. DAVx succesfully connects and syncs all calendars and events.
    Events in the near future (I tested a few days) are displayed correctly in google and outlook calendar.
    Events a bit more far in the future (e.g. february 2021) are all displayed a day in advance, at 23:00.
    this is what I see for one of these events in the app log:

    BEGIN:VCALENDAR
    10-05 14:15:06.100  5871 30848 V davx5   : PRODID:-//IDN nextcloud.com//Calendar app 2.1.2//EN
    10-05 14:15:06.100  5871 30848 V davx5   : CALSCALE:GREGORIAN
    10-05 14:15:06.100  5871 30848 V davx5   : VERSION:2.0
    10-05 14:15:06.100  5871 30848 V davx5   : BEGIN:VEVENT
    10-05 14:15:06.100  5871 30848 V davx5   : CREATED:20201005T131440Z
    10-05 14:15:06.100  5871 30848 V davx5   : DTSTAMP:20201005T131449Z
    10-05 14:15:06.100  5871 30848 V davx5   : LAST-MODIFIED:20201005T131449Z
    10-05 14:15:06.100  5871 30848 V davx5   : SEQUENCE:3
    10-05 14:15:06.100  5871 30848 V davx5   : UID:129e35b6-ac19-481d-9176-c737f2b019b6
    10-05 14:15:06.100  5871 30848 V davx5   : DTSTART;TZID=Europe/Dublin:20210203T170000
    10-05 14:15:06.100  5871 30848 V davx5   : DTEND;TZID=Europe/Dublin:20210203T190000
    10-05 14:15:06.100  5871 30848 V davx5   : SUMMARY:sdadasd
    10-05 14:15:06.100  5871 30848 V davx5   : END:VEVENT
    10-05 14:15:06.100  5871 30848 V davx5   : BEGIN:VTIMEZONE
    10-05 14:15:06.100  5871 30848 V davx5   : TZID:Europe/Dublin
    10-05 14:15:06.100  5871 30848 V davx5   : BEGIN:STANDARD
    10-05 14:15:06.100  5871 30848 V davx5   : TZOFFSETFROM:+0000
    10-05 14:15:06.100  5871 30848 V davx5   : TZOFFSETTO:+0100
    10-05 14:15:06.100  5871 30848 V davx5   : TZNAME:IST
    10-05 14:15:06.100  5871 30848 V davx5   : DTSTART:19700329T010000
    10-05 14:15:06.100  5871 30848 V davx5   : RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
    10-05 14:15:06.100  5871 30848 V davx5   : END:STANDARD
    10-05 14:15:06.100  5871 30848 V davx5   : BEGIN:DAYLIGHT
    10-05 14:15:06.100  5871 30848 V davx5   : TZOFFSETFROM:+0100
    10-05 14:15:06.100  5871 30848 V davx5   : TZOFFSETTO:+0000
    10-05 14:15:06.100  5871 30848 V davx5   : TZNAME:GMT
    10-05 14:15:06.100  5871 30848 V davx5   : DTSTART:19701025T020000
    10-05 14:15:06.100  5871 30848 V davx5   : RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
    10-05 14:15:06.100  5871 30848 V davx5   : END:DAYLIGHT
    10-05 14:15:06.100  5871 30848 V davx5   : END:VTIMEZONE
    10-05 14:15:06.100  5871 30848 V davx5   : END:VCALENDAR
    

    while this is for an event created for tomorrow, that displays correctly in my calendar apps:

    BEGIN:VCALENDAR
    10-05 14:57:02.380  5871 16696 V davx5   : PRODID:-//IDN nextcloud.com//Calendar app 2.1.2//EN
    10-05 14:57:02.380  5871 16696 V davx5   : CALSCALE:GREGORIAN
    10-05 14:57:02.380  5871 16696 V davx5   : VERSION:2.0
    10-05 14:57:02.380  5871 16696 V davx5   : BEGIN:VEVENT
    10-05 14:57:02.380  5871 16696 V davx5   : CREATED:20201005T135642Z
    10-05 14:57:02.380  5871 16696 V davx5   : DTSTAMP:20201005T135647Z
    10-05 14:57:02.380  5871 16696 V davx5   : LAST-MODIFIED:20201005T135647Z
    10-05 14:57:02.380  5871 16696 V davx5   : SEQUENCE:2
    10-05 14:57:02.380  5871 16696 V davx5   : UID:28bffe95-c206-4045-9937-519cf676a6cc
    10-05 14:57:02.380  5871 16696 V davx5   : DTSTART;TZID=Europe/Dublin:20201006T113000
    10-05 14:57:02.380  5871 16696 V davx5   : DTEND;TZID=Europe/Dublin:20201006T120000
    10-05 14:57:02.380  5871 16696 V davx5   : SUMMARY:testtest
    10-05 14:57:02.380  5871 16696 V davx5   : END:VEVENT
    10-05 14:57:02.380  5871 16696 V davx5   : BEGIN:VTIMEZONE
    10-05 14:57:02.380  5871 16696 V davx5   : TZID:Europe/Dublin
    10-05 14:57:02.380  5871 16696 V davx5   : BEGIN:STANDARD
    10-05 14:57:02.380  5871 16696 V davx5   : TZOFFSETFROM:+0000
    10-05 14:57:02.380  5871 16696 V davx5   : TZOFFSETTO:+0100
    10-05 14:57:02.380  5871 16696 V davx5   : TZNAME:IST
    10-05 14:57:02.380  5871 16696 V davx5   : DTSTART:19700329T010000
    10-05 14:57:02.380  5871 16696 V davx5   : RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
    10-05 14:57:02.380  5871 16696 V davx5   : END:STANDARD
    10-05 14:57:02.380  5871 16696 V davx5   : BEGIN:DAYLIGHT
    10-05 14:57:02.380  5871 16696 V davx5   : TZOFFSETFROM:+0100
    10-05 14:57:02.380  5871 16696 V davx5   : TZOFFSETTO:+0000
    10-05 14:57:02.380  5871 16696 V davx5   : TZNAME:GMT
    10-05 14:57:02.380  5871 16696 V davx5   : DTSTART:19701025T020000
    10-05 14:57:02.380  5871 16696 V davx5   : RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
    10-05 14:57:02.380  5871 16696 V davx5   : END:DAYLIGHT
    10-05 14:57:02.380  5871 16696 V davx5   : END:VTIMEZONE
    10-05 14:57:02.380  5871 16696 V davx5   : END:VCALENDAR
    

    is this a DAVx issue or something else? Something with the apps?



  • I tried to create the events on a different timezone and it’s working properly. Using Europe/London, events are visible in the calendars with the correct time and day.



  • Have you in mind that the daylight saving time is still active for Dublin until October 25th and will start again on March 29th?



  • @j-ed I thought about that, but I’m not sure that’s the problem.
    events at any time during the day (even just a week in the future) I appear at 11pm the previous day.
    changing the timezone in nextcloud calendar to London seems to work.
    Maybe davx or some other library is not handling Europe/Dublin properly?



  • The forum randomly suggested this post
    https://forums.bitfire.at/topic/1985/bug-related-to-parsing-time-or-timezone-of-events-created-with-thunderbird-lightning
    I couldn’t find this before, but it’s the same issue. I found that nextcloud calendar ics for dublin is wrong, it looks like standard and daylight are swapped.
    sorry I didn’t see this before!


  • admin

    @mikescandy Great that you found it anyway 🙂



Similar topics