Skip to content
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

Remove the Z from the Google Calendar link #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgreenslade
Copy link
Contributor

When ever I use the Google Calendar link, it always sets the wrong time for events, usually out by and hour. When I remove the Z from the Google Calendar link my calendar default timezone is selected so the time is right.

@Little-Ben
Copy link
Owner

Sorry, your code does not work in my timezone (CEST).
Maybe it works for you without the Z because you are in GMT/UTC (should be same like BST, if I am right).

Date/Time is stored in your local time in the database (mysql).
Google wants to have UTC date, that's why I am using gmdate to transform that.
gmdate returns a string in UTC - the Z is signaling excatly that fact to google.

Here at my timezone this (with Z) is doing exactly right. I am looking into the code, but timezone stuff is not always the easiest. So if you have a better solution, please push again to git.

Copy link
Owner

@Little-Ben Little-Ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your code does not work in my timezone, for details please see comment

@sgreenslade
Copy link
Contributor Author

Hi Ben,
Sorry that the change does not work in other timezones....
I'll also have a think about another solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants