Adding news events with curl gives events 2 hours later

Hi, i try to make this bash command work : curl -k -H "Content-Type: text/calendar; charset=utf-8" --user 'user:password' -X PUT --data-binary @test https://myserver.org/remote.php/dav/calendars/user/personal/$RANDOM.ics.

the command works but the events are always 2 hours later…

the test file contains :
BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VEVENT DTSTART;TZID=Europe/Paris:20201014T122929Z DTEND;TZID=Europe/Paris:20201014T132929Z SUMMARY:test END:VEVENT END:VCALENDAR

infos:
My calendar is set to Paris time
Nextcloud 19.0.4

I would recommend to create an event using the web gui, export it to an ics file and compare the outcome with your script data. This should allow you to find the differences between the files.

1 Like

The Z letter at the end of the dates was wrong :crazy_face: :sweat_smile:

Thanks a lot, your idea did the thing !

PS : has anybody an explanation about that ?

“Z” stands for “Zulu” or a UTC time stamp :wink:

1 Like