{"id":1009083,"date":"2015-09-27T18:29:12","date_gmt":"2015-09-28T01:29:12","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/"},"modified":"2015-10-28T07:05:04","modified_gmt":"2015-10-28T14:05:04","slug":"json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/","title":{"rendered":"JSON Link Data date is incorrect, Google thinks our events occur the next day"},"content":{"rendered":"<p>We are experiencing an issue with the linked data feature of the Events Calendar. When searching for our events in Google, the search results are showing that wrong day for any event that starts at 5pm or later PST.<\/p>\n<p>I setup a fresh install of WordPress and only have the Events Calendar and Events Calendar Pro installed. WordPress timezone is set to America\/Los_Angeles, as is the timezone in the server level php.ini, as well as actual server local time.<\/p>\n<p>I created an event that starts at 8pm September 27. The date is presented correctly when viewing the event details,however the resulting JSON data when viewing the event details shows the event starts September 29th at 3am. Now, it&#8217;s clear that the plugin is rendering a UTC date. Converting my PST date, 9\/27\/2015 8pm, to UTC, does become 9\/28\/2015 3am. This is a problem as Google is not converting the date, and is showing that event starts the following day.<\/p>\n<p>The json data looks like: [{&#8220;@context&#8221;:&#8221;http:\/\/schema.org&#8221;,&#8221;@type&#8221;:&#8221;Event&#8221;,&#8221;name&#8221;:&#8221;Test Event&#8221;,&#8221;url&#8221;:&#8221;http:\/\/wordpress.local\/index.php\/event\/test-event\/&#8221;,&#8221;startDate&#8221;:&#8221;2015-09-29T03:00:00+00:00&#8243;,&#8221;endDate&#8221;:&#8221;2015-09-29T05:00:00+00:00&#8243;}]<\/p>\n<p>I am pretty sure that the data should actually show the correct PST date with the timezone offset. For example, startDate should be &#8220;startDate&#8221;:&#8221;2015-09-28T8:00:00+07:00&#8243;.<\/p>\n","protected":false},"template":"","class_list":["post-1009083","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSON Link Data date is incorrect, Google thinks our events occur the next day -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON Link Data date is incorrect, Google thinks our events occur the next day -\" \/>\n<meta property=\"og:description\" content=\"We are experiencing an issue with the linked data feature of the Events Calendar. When searching for our events in Google, the search results are showing that wrong day for any event that starts at 5pm or later PST. I setup a fresh install of WordPress and only have the Events Calendar and Events Calendar [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-28T14:05:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/\",\"name\":\"JSON Link Data date is incorrect, Google thinks our events occur the next day -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-28T01:29:12+00:00\",\"dateModified\":\"2015-10-28T14:05:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"JSON Link Data date is incorrect, Google thinks our events occur the next day\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JSON Link Data date is incorrect, Google thinks our events occur the next day -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/","og_locale":"en_US","og_type":"article","og_title":"JSON Link Data date is incorrect, Google thinks our events occur the next day -","og_description":"We are experiencing an issue with the linked data feature of the Events Calendar. When searching for our events in Google, the search results are showing that wrong day for any event that starts at 5pm or later PST. I setup a fresh install of WordPress and only have the Events Calendar and Events Calendar [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/","article_modified_time":"2015-10-28T14:05:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/","name":"JSON Link Data date is incorrect, Google thinks our events occur the next day -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-28T01:29:12+00:00","dateModified":"2015-10-28T14:05:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/json-link-data-date-is-incorrect-google-thinks-our-events-occur-the-next-day\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"JSON Link Data date is incorrect, Google thinks our events occur the next day"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1009083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1009083\/revisions"}],"predecessor-version":[{"id":1009709,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1009083\/revisions\/1009709"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1009083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}