-
Notifications
You must be signed in to change notification settings - Fork 48
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
Google Calendar cannot import time zone description #53
Comments
But that will also change the DTSTART format of the events and I would like these entries to keep the time zone. Maybe I will have to examine further which system (Google Calendar, GMail, Apple iCloud, Apple Mail, Microsoft Outlook) likes which format. E.g. when creating ICS files to attach them to an email and to allow users to import it, it was important to use the "local" format (not "local-tz") otherwise Gmail does not display the event. Ok, if you made it on purpose this way then just reject my pull request and I will keep the change only in my personal fork. I don't know why Google Calendar does not support that time zone definition format. And yes, it works fine with the "utc" format but I need to examine first if that has maybe other side effects. Thank you very much for your quick response! :-) |
@dg76 thanks for using this - if you find out more about your issue please go ahead and post to this thread! |
I had this issue as well. I am setting the timezone, as well as dateTimeFormat == 'local-tz'. I need to use 'local-tz' because I found I needed the inline TZID in the VEVENT DTSTART/DTEND in order for it to work in MS apps, and that does work: BEGIN:VEVENT... However, when the dateTimeFormat == 'local-tz', it also tries to apply it to the VTIMEZONE block, but the timezone format is different and incompatible with Google: BEGIN:VTIMEZONE I could be wrong, but I don't think the VTIMEZONE DTSTART needs the inline TZID because the TZID is already specified in its own line in the VTIMEZONE block. I ended up using the version at commit a68469b, which includes a "fix" that omits the inline TZID from the VTIMEZONE DTSTART. This version works for me in both MS and Google apps. But the fix was reverted later on. |
@icvalyssa do you have the bandwidth to fix the issue with #47? I'll merge it in if you can. |
@icvalyssa Just to make a quick comment regarding the inline timezones, I believe I found that this helps resolves issues with Outlook and events that occur on "the other side" of daylight savings. So if you're currently going through daylight savings, and looking at an event that occurrs when there's no daylight savings, in my experience without the inline timezone information, outlook tries to correct the date/time even when it's not needed. The inline timezone helped prevent this from happening. (Or something to that affect... I'm certain the need for it was daylight savings and outlook related) |
Hi!
I am not sure if this is a new problem in Google Calendar but it seems now that it does not like the TZID in the time zone definition block when importing an ICS file generated by this library. The events of the ICS file are not displayed in Google Calendar if the time zone block looks like this:
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:STANDARD
DTSTART;TZID=+00:00:20201025T010000
It works fine when using an UTC time instead:
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:STANDARD
DTSTART:20201025T010000Z
The file CalendarExport.php creates the upper block in "local-tz" mode:
I would suggest to use the same mode as in "utc" to fix this:
What do you think? Or is there a reason why getFormattedDateTimeWithTimeZone was used instead?
The text was updated successfully, but these errors were encountered: