-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
ICS/ICAL sync timezone issue #3
Comments
Some regex's: https://regex101.com/r/Nstcrr/3 |
As far as I can see in the documentation you reference, the TZID must be a reference to a VTIMEZONE component. Thus the TZID can be anything, and can't be parsed directly. You probably need to correctly interpret the VTIMEZONE (including daylight saving stuff) to apply the correct offset for a calendar entry. |
Here is an example of the
Here's another:
|
I tried out this script, and while it works 'fairly' good for a lot of entries, I have noticed that items which are supposed to be 'full day events' being scheduled form 9AM to 9AM - over two days, which is weird. My timezone is CEST (Belgium), source feed is coming from Outlook 365. |
@jdeluyck Could you please email me all or part of your ICS file? derekantrican@gmail.com |
Sent, together with some comments |
I have a similar problem. Every appointment/meeting I add to my office 365 calendar is correctly added to Google calendar but the time zone is ignored. In the Stackdriver log of the script execution I have: I'm no developer, so forgive me if the comment is needless :-D |
@marketingthriveworks has funded $300.00 to this issue. See it on IssueHunt |
FYI I solved the problem with a simple and dirty hack. |
Anyone that has been having problems with this (@ravem @marketingthriveworks @jdeluyck ) please make a copy of this script and check to see if the problem is resolved: https://script.google.com/d/1jD1oiON1ID4Cx46b3U_6nxn4Q-SNJ-J_gekVoQ_hLD2VOhGCnL6HzRn6/edit?usp=sharing |
TypeError: Cannot read property "id" from undefined. (line 151, file "Code") |
@marketingthriveworks thanks for catching that. I just fixed it. It's accessible at the same link as before (you can either make a copy again or just copy all of the |
Issue remains still. I have to change appsscripts.json to my timezone for the calendar appointments to reflect the correct timezone. "timeZone": "America/New_York", |
@marketingthriveworks Please send me a link to the script that you are using derekantrican@gmail.com |
@derekantrican my problem seems to be fixed. |
@derekantrican has rewarded $270.00 to @derekantrican. See it on IssueHunt
|
Added MD5 Checksum to determine if an event was updated. (Fix #3) Code cleanup and reorganization. No longer set iCalUID for new events, id will be saved as extended property
From Google-Apps-Script-Library created by derekantrican : derekantrican/Google-Apps-Script-Library#6
The following function is having trouble parsing timezones and needs to be improved:
The solution is to use regex to parse out the parts of the string. Here is documentation on how this parameter is formatted: https://www.kanzaki.com/docs/ical/dtstart.html
The text was updated successfully, but these errors were encountered: