Title: Timezone issue
Last modified: August 30, 2016

---

# Timezone issue

 *  Resolved [ajarantes](https://wordpress.org/support/users/ajarantes/)
 * (@ajarantes)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/timezone-issue-7/)
 * I have GCE version 2.2.9 and WordPress 4.2.4.
 * The calendar in Google is with the correct timezone GMT-7 (Pacific Time), which
   is the same timezone of my WordPress installation as well as the Server in the
   hosting company.
 * Nevertheless, the “Feed” I setup keeps getting any entry for the day before, 
   if that entry ends after 5pm. It seems that it is getting anything that happens“
   tomorrow” at GMT 0.
 * I noticed that data-gce-start-offset is set to ZERO.
 * I tried to set the “Timezone” for the feed as both “Calendar default” and “Site
   default”.
 * And in “Display Mode” I’m using “Custom Date Range (List)”, using a single day
   in the future.
 * Am I doing something wrong? Am I missing something?
 * Thanks,
    Alex
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6443934)
 * Hi Alex,
 * Server time zone should be always set to UTC. If it’s not UTC, you will have 
   problems with many applications. I’m confident yours is and WordPress sets an
   offset according to your setting in general options as it normally would.
 * So, can I have a link to your website and the id of the calendar you’re trying
   to use?
 * thank you
 *  Thread Starter [ajarantes](https://wordpress.org/support/users/ajarantes/)
 * (@ajarantes)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6443986)
 * Hi Fulvio,
 * Thanks for your reply.
 * One of the pages with this issue is this:
 * [http://victoriahighlandgames.com/games/gce_feed/glasgow-green-day-3/](http://victoriahighlandgames.com/games/gce_feed/glasgow-green-day-3/)
 * When I say the “server timezone”, I’m referring to the timezone setting done 
   through php.ini and retrieved through phpinfo(). It is set to “America/Vancouver”(
   this was already set as “Pacific/Los Angeles” from the start).
 * I set both the WordPress timezone and the Google Calendar timezone.
 * Did you mean that I would have to change these dates?
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6443997)
 * this is the answer from Google:
 * [https://www.googleapis.com/calendar/v3/calendars/victoriahighlandgames.com_gufqo1j93tv68t1v0qb840p9s4@group.calendar.google.com/events?key=AIzaSyAssdKVved1mPVY0UJCrx96OUOF9u17AuY&timeMin=2016-05-23T00%3A00%3A00%2B00%3A00&timeMax=2016-05-23T23%3A59%3A59%2B00%3A00&maxResults=2500&singleEvents=true](https://www.googleapis.com/calendar/v3/calendars/victoriahighlandgames.com_gufqo1j93tv68t1v0qb840p9s4@group.calendar.google.com/events?key=AIzaSyAssdKVved1mPVY0UJCrx96OUOF9u17AuY&timeMin=2016-05-23T00%3A00%3A00%2B00%3A00&timeMax=2016-05-23T23%3A59%3A59%2B00%3A00&maxResults=2500&singleEvents=true)
 * and those dates are printed on your calendar
 * In WordPress general settings, you can leave the timezone of your blog – which
   should be accurate to display your blog post dates right
 * On each calendar feed, you can choose to base your calendars on the calendar 
   feed timezone, or adjust the calendar events date-time according to your site
   timezone. In Google, you have two places where you can set a timezone. One is
   the Google account general timezone (default timezone). Then you can have multiple
   calendar feeds in Google using this timezone or one set manually.
 * Set the events on your Google Calendar according to the Google Calendar timezone
   as you would do normally. Have WordPress use its own timezone (which may or may
   not match the one of used on your Google Calendar feed), then on the feed settings
   set ‘use calendar’ for timezone. This, unless you want to convert the calendar
   feed timezone to WordPress time (for example if your readers want to know the
   time of an event somewhere else in your blog local time – e.g. a football match,
   a live webcast, and so on).
 * About your server – as far as I know it’s best to have the server use UTC and
   then have your application modify the time – WordPress should do this for you.
   If you run `var_dump( date_default_timezone_get() );` ideally you should get `
   UTC`.
 * One last thing – if from your site someone clicks a ‘read more’ link from an 
   event to go into Google Calendar app webpage, Google will try to adjust timezones
   according to the viewer. If you are using ‘use site’ it should pass a variable
   to adjust the timezone according to that and Google should comply.
 *  Thread Starter [ajarantes](https://wordpress.org/support/users/ajarantes/)
 * (@ajarantes)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6444007)
 * Thanks Fulvio but I’m still lost on this…
 * Everything is as you mentioned above:
 * – wordpress general settings in the timezone of my blog
    – google general timezone
   and specific calendar timezone are the same as wordpress timezone – server uses
   UTC – feed settings use “Calendar” timezone.
 * Yet, the result itself doesn’t make sense. As you noticed from google JSON answer,
   it brings back two events, one on the 22nd and another on the 23rd. The problem
   is that I’m asking only for the 23rd.
 * Here are the feed settings:
 * **Timezone:** Calendar default (although I tried with Site Default to no avail)
   **
   Search Query:** (blank) **Expand Recurring Events?** Checked **Multiple Day Events:**
   Unchecked **Display mode:** Custom Date Range (list) **Use Custom Date Range:**
   05/23/2016 to 05/23/2016 **Show Tooltips:** checked **Date Format:** Y-m-d **
   Time Format:** H:i:s **Cache Duration:** 43200 (I clear cache after each change,
   just to be sure…)
 * What am I missing?
 * Thanks,
    Alex
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6444139)
 * sorry for let you wait Alex
 * maybe this is a bug
 * perhaps later today I will send an update that might help fix that
 *  Plugin Contributor [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6444153)
 * Hi Alex, can you try the new version 2.3.0 it should better address some timezone
   cases
 *  Thread Starter [ajarantes](https://wordpress.org/support/users/ajarantes/)
 * (@ajarantes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6444154)
 * Thanks but the issue is still there for me. I cleared the cache on the feed and
   called it again, but it’s still giving me GG21 from May 22nd. You can see it 
   at the same URL I gave you before:
 * [http://victoriahighlandgames.com/games/gce_feed/glasgow-green-day-3/](http://victoriahighlandgames.com/games/gce_feed/glasgow-green-day-3/)
 * I actually “solved” this problem through jQuery by simply removing ($.remove())
   any items that didn’t belong in the list.
 * The project itself is much more complex and the end result can be seen here: (
   [http://victoriahighlandgames.com/games/schedule/](http://victoriahighlandgames.com/games/schedule/)).
   It takes various feeds (each column is a different feed) and builds a table using
   jQuery and CSS. I don’t know if it is the “proper” way of doing it, but it’s 
   working…
 * Thanks again,
    Alex

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Timezone issue’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

## Tags

 * [GMT](https://wordpress.org/support/topic-tag/gmt/)
 * [timezone](https://wordpress.org/support/topic-tag/timezone/)
 * [utc](https://wordpress.org/support/topic-tag/utc/)

 * 7 replies
 * 2 participants
 * Last reply from: [ajarantes](https://wordpress.org/support/users/ajarantes/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/timezone-issue-7/#post-6444154)
 * Status: resolved