0

I am creating a webcal url to be registered by different calendar clients (Outlook, Google Calendar, etc) and I am have a problem on a time zone.

Outlook does not recognize the TZ "Europe/Paris", and uses UTC as replacement. Google Calendar does not recognize the TZ "Romance Standard Time", and uses UTC as replacement.

Both of them use the same webcal URL, where I build the ics they will use to synchronize the calendar events, and I have no way of knowing from where the webcal url is called (at this moment).

Here is a sample of what the ics content looks like :

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-XXXXXX
X-WR-CALNAME:
X-WR-TIMEZONE:America/Belize
VERSION:2.0
BEGIN:VEVENT
UID:XXXXX
SUMMARY:my event
SEQUENCE:0
DTSTART;TZID="Romance Standard Time":20181005T120000
DTEND;TZID="Romance Standard Time":20181005T123000
LOCATION:there
DESCRIPTION:desc
END:VEVENT
END:VCALENDAR

So when Google Calendar retrieves this content, it displays the event from 14:00 to 14h30. And the calendar TZ is apparently set to (GMT+00:00) (which I cannot change manually). Outlook will display the event at the correct time. If I use Europe/Paris instead of "Romance Standard Time", Outlook will fail, and Google Calendar will succeed.

Note that the "X-WR-TIMEZONE" argument is not used by Google Calendar (I don't know about Outlook).

Have you guys already struggled on this one? Is there a TZ both of them understand? Do I need to add an argument on the webcall url so that I know where it is from?

What I am afraid of is that this is just for Europe/Paris... I am fairly sure other TZ will have the same problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.