Google add to calendar button bug

Add to Google Calendar bug

0

Imagine situation when you are hosting an event or you have a website that regularly organizes events. You create a page, add time and place of event and then you decide to add a Google Calendar button to make things look fancy.

So you google it and you find a script like this:

<a href="http://www.google.com/calendar/event?action=TEMPLATE&text=Example%20Event
&dates=20131124T010000Z/20131124T020000Z
&details=Event%20Details%20Here
&location=123%20Main%20St%2C%20Example%2C%20NY">Add to gCal</a>

Looks simple, you just need to edit some url parameters, most importantly dates parameter.

You type in your event data and here comes trouble.

Google Calendar adds couple of hours to your specified time. Why is that?

To be short, this is the reason:

Did you notice that “Z” at the end? That is the reason why your Google Calendar is adding some time to the official event time.

Lesson learned

0

December 29, 2019

Leave a comment

Your email address will not be published. Required fields are marked *