Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

Caldav All Day Events Displayed 1 Day Early

Open cwmke opened this issue 9 years ago • 15 comments

All day events from my synced caldav calendars are being displayed 1 day early. They still appear on their proper date/times on other calendars.

cwmke avatar Oct 23 '17 20:10 cwmke

Hey, is there any way you could export the events in an ics file, and send me the file with only 1 wrong event in it? You can open .ics files with any text editor, I need the lines between BEGIN:VEVENT and END:VEVENT, feel free changing the event title or whatever, just leave the dates and times intact. Also, what timezone are you in? Thanks

tibbi avatar Oct 24 '17 18:10 tibbi

BEGIN:VEVENT SUMMARY:JAMES ANDERSON (*1952) UID:Caldav-6-732 CATEGORIES:Contact birthdays LAST-MODIFIED:19700101T000000Z DTSTART;VALUE=DATE:19521023 DTEND;VALUE=DATE:19521024 STATUS:CONFIRMED RRULE:FREQ=YEARLY;INTERVAL=1 BEGIN:VALARM ACTION:DISPLAY TRIGGER:-P0DT0H0M0S END:VALARM END:VEVENT

cwmke avatar Oct 27 '17 17:10 cwmke

Actual birthday on other calendars displays the proper birthday which is the 24th. This is just one example. It happens with all of the all-day events. Thanks for taking a look!

cwmke avatar Oct 27 '17 17:10 cwmke

Okay thanks, I will try reproducing and fixing it.

tibbi avatar Oct 27 '17 19:10 tibbi

Where does the CalDAV calendar come from? Is it a Google Calendar, or something else? Because if I create an all-day event in Google Calendar for 24th october, it exports as DTSTART;VALUE=DATE:20171024 DTEND;VALUE=DATE:20171025 Based on that Im subtracting 1 day from all-day events. So as always, I guess there are no standards related to this either :/

tibbi avatar Oct 30 '17 10:10 tibbi

I'm using Nextcloud.

cwmke avatar Oct 30 '17 14:10 cwmke

if you are still around, can you export another ics file and check the file header? Im interested in the part between BEGIN:VCALENDAR and the first BEGIN:VEVENT. It might contain some version or product id or so. Thanks

tibbi avatar Jan 09 '18 17:01 tibbi

I'm running into this same issue. All day events are one day early. Not only that but recurring events (i.e. every two weeks / every other week) are displaying on the "off" week.

Here's a test all day event I created for this Friday (1/19) but shows up for Thursday (1/18) instead:

BEGIN:VEVENT SUMMARY:Test all day for Friday 1/19 UID:Caldav-1-764 CATEGORY_COLOR:-15292571 CATEGORIES:[email protected] LAST-MODIFIED:19700101T000000Z DTSTART;VALUE=DATE:20180118 DTEND;VALUE=DATE:20180119 STATUS:CONFIRMED BEGIN:VALARM ACTION:DISPLAY TRIGGER:-P0DT0H10M0S END:VALARM END:VEVENT

Im interested in the part between BEGIN:VCALENDAR and the first BEGIN:VEVENT. It might contain some version or product id or so.

BEGIN:VCALENDAR PRODID:-//Simple Mobile Tools//NONSGML Event Calendar//EN VERSION:2.0

redbarnnobrakes avatar Jan 17 '18 00:01 redbarnnobrakes

@redbarnnobrakes can you export the event from NextCloud, to see what ics file they produce? With the header too. Thanks

tibbi avatar Jan 17 '18 08:01 tibbi

Sorry for my delay in getting this up @tibbi. This is an export from Nextcloud between BEGIN:VCALENDAR and the first BEGIN:VEVENT.

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//SabreDAV//SabreDAV//EN
X-WR-CALNAME:<redacted>
X-APPLE-CALENDAR-COLOR:#8c00d4
BEGIN:VTIMEZONE
TZID:America/Chicago
TZURL:http://tzurl.org/zoneinfo/America/Chicago
X-LIC-LOCATION:America/Chicago
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CDT
DTSTART:20070311T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CDT
DTSTART:19180331T020000
RDATE:19180331T020000
RDATE:19190330T020000
RDATE:19200613T020000
RDATE:19210327T020000
RDATE:19220430T020000
RDATE:19230429T020000
RDATE:19240427T020000
RDATE:19250426T020000
RDATE:19260425T020000
RDATE:19270424T020000
RDATE:19280429T020000
RDATE:19290428T020000
RDATE:19300427T020000
RDATE:19310426T020000
RDATE:19320424T020000
RDATE:19330430T020000
RDATE:19340429T020000
RDATE:19350428T020000
RDATE:19370425T020000
RDATE:19380424T020000
RDATE:19390430T020000
RDATE:19400428T020000
RDATE:19410427T020000
RDATE:19460428T020000
RDATE:19470427T020000
RDATE:19480425T020000
RDATE:19490424T020000
RDATE:19500430T020000
RDATE:19510429T020000
RDATE:19520427T020000
RDATE:19530426T020000
RDATE:19540425T020000
RDATE:19550424T020000
RDATE:19560429T020000
RDATE:19570428T020000
RDATE:19580427T020000
RDATE:19590426T020000
RDATE:19600424T020000
RDATE:19610430T020000
RDATE:19620429T020000
RDATE:19630428T020000
RDATE:19640426T020000
RDATE:19650425T020000
RDATE:19660424T020000
RDATE:19670430T020000
RDATE:19680428T020000
RDATE:19690427T020000
RDATE:19700426T020000
RDATE:19710425T020000
RDATE:19720430T020000
RDATE:19730429T020000
RDATE:19740106T020000
RDATE:19750223T020000
RDATE:19760425T020000
RDATE:19770424T020000
RDATE:19780430T020000
RDATE:19790429T020000
RDATE:19800427T020000
RDATE:19810426T020000
RDATE:19820425T020000
RDATE:19830424T020000
RDATE:19840429T020000
RDATE:19850428T020000
RDATE:19860427T020000
RDATE:19870405T020000
RDATE:19880403T020000
RDATE:19890402T020000
RDATE:19900401T020000
RDATE:19910407T020000
RDATE:19920405T020000
RDATE:19930404T020000
RDATE:19940403T020000
RDATE:19950402T020000
RDATE:19960407T020000
RDATE:19970406T020000
RDATE:19980405T020000
RDATE:19990404T020000
RDATE:20000402T020000
RDATE:20010401T020000
RDATE:20020407T020000
RDATE:20030406T020000
RDATE:20040404T020000
RDATE:20050403T020000
RDATE:20060402T020000
END:DAYLIGHT
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CWT
DTSTART:19420209T020000
RDATE:19420209T020000
END:DAYLIGHT
BEGIN:DAYLIGHT
TZOFFSETFROM:-0500
TZOFFSETTO:-0500
TZNAME:CPT
DTSTART:19450814T180000
RDATE:19450814T180000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0500
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:20071104T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
BEGIN:STANDARD
TZOFFSETFROM:-055036
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:18831118T120924
RDATE:18831118T120924
END:STANDARD
BEGIN:STANDARD
TZOFFSETFROM:-0500
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:19181027T020000
RDATE:19181027T020000
RDATE:19191026T020000
RDATE:19201031T020000
RDATE:19211030T020000
RDATE:19220924T020000
RDATE:19230930T020000
RDATE:19240928T020000
RDATE:19250927T020000
RDATE:19260926T020000
RDATE:19270925T020000
RDATE:19280930T020000
RDATE:19290929T020000
RDATE:19300928T020000
RDATE:19310927T020000
RDATE:19320925T020000
RDATE:19330924T020000
RDATE:19340930T020000
RDATE:19350929T020000
RDATE:19361115T020000
RDATE:19370926T020000
RDATE:19380925T020000
RDATE:19390924T020000
RDATE:19400929T020000
RDATE:19410928T020000
RDATE:19450930T020000
RDATE:19460929T020000
RDATE:19470928T020000
RDATE:19480926T020000
RDATE:19490925T020000
RDATE:19500924T020000
RDATE:19510930T020000
RDATE:19520928T020000
RDATE:19530927T020000
RDATE:19540926T020000
RDATE:19551030T020000
RDATE:19561028T020000
RDATE:19571027T020000
RDATE:19581026T020000
RDATE:19591025T020000
RDATE:19601030T020000
RDATE:19611029T020000
RDATE:19621028T020000
RDATE:19631027T020000
RDATE:19641025T020000
RDATE:19651031T020000
RDATE:19661030T020000
RDATE:19671029T020000
RDATE:19681027T020000
RDATE:19691026T020000
RDATE:19701025T020000
RDATE:19711031T020000
RDATE:19721029T020000
RDATE:19731028T020000
RDATE:19741027T020000
RDATE:19751026T020000
RDATE:19761031T020000
RDATE:19771030T020000
RDATE:19781029T020000
RDATE:19791028T020000
RDATE:19801026T020000
RDATE:19811025T020000
RDATE:19821031T020000
RDATE:19831030T020000
RDATE:19841028T020000
RDATE:19851027T020000
RDATE:19861026T020000
RDATE:19871025T020000
RDATE:19881030T020000
RDATE:19891029T020000
RDATE:19901028T020000
RDATE:19911027T020000
RDATE:19921025T020000
RDATE:19931031T020000
RDATE:19941030T020000
RDATE:19951029T020000
RDATE:19961027T020000
RDATE:19971026T020000
RDATE:19981025T020000
RDATE:19991031T020000
RDATE:20001029T020000
RDATE:20011028T020000
RDATE:20021027T020000
RDATE:20031026T020000
RDATE:20041031T020000
RDATE:20051030T020000
RDATE:20061029T020000
END:STANDARD
BEGIN:STANDARD
TZOFFSETFROM:-0600
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:19200101T000000
RDATE:19200101T000000
RDATE:19420101T000000
RDATE:19460101T000000
RDATE:19670101T000000
END:STANDARD
BEGIN:STANDARD
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:EST
DTSTART:19360301T010000
RDATE:19360301T010000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT

cwmke avatar Jan 17 '18 19:01 cwmke

hah ok cool, thanks. Ill try combining everything I have and figure out some proper fix.

tibbi avatar Jan 17 '18 19:01 tibbi

Can you guys try one more thing, with an all-day event? Import an all-day event that is 1 day early, tell me the DTSTART and DTEND of it (just these 2 lines), then open the event on the details screen, uncheck "All-day" then tell me what start/end date/time do you see there. Thanks

tibbi avatar Jan 18 '18 17:01 tibbi

and also tell what timezone are you in

tibbi avatar Jan 18 '18 20:01 tibbi

off-by-day at caldav sync should be fixed in 3.1.1, still not sure why does it happen at importing ics files to some people. I guess that if you export the event in an ics file and try importing the file, it will work fine. It is broken only at syncing caldav directly.

tibbi avatar Jan 19 '18 19:01 tibbi

ill skip 3.1.1 and go to 3.2.0 directly so the events should be fixed there. Reopen or create a new issue if theres still some problems. Thanks

tibbi avatar Jan 22 '18 17:01 tibbi