-
Notifications
You must be signed in to change notification settings - Fork 98
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
Server says "Forbidden" when creating event with timezone #372
Comments
Hmm ... what happens if you use
In the master branch (I'll try to find some time to make a new release soon) there is a debug hook, if you set the environment variable PYTHON_CALDAV_COMMDUMP then the library will dump some communication files under /tmp - would be useful to see if the library is shipping the timezone information correctly to the server. (Hm, actually I think I realized at some point that it's easier to just convert the time to UTC when creating events). |
Switching to Here is the updated code:
|
It's a bit weird. I should probably come back and look into this at some point. |
This is the gist of it, if I remember correctly:
I'm not sure what is the best way to handle this ... possibly it involves embedding the timezone data into the icalendar object. That's something the icalendar library should handle, in that case. I leave this open as an issue - it needs better handling than today in any case. |
Hello,
I am new to Python, so I feel like I am making a silly mistake.
I am trying to add an event to my calendar. The following code works:
However, if I add a
tzinfo
argument, I get an error.The last part of the traceback is:
caldav.lib.error.AuthorizationError: AuthorizationError at '<some_url>', reason Forbidden
Any ideas?
The text was updated successfully, but these errors were encountered: