• Resolved supremius

    (@supremius)


    Hi,

    I noticed the startDate and endDate were incorrect in Google rich snippets by 7 hours. An event at 05-08-16 at 7pm appears as 05-09-16 2am in Google rich snippets. My time was set in WordPress Settings to UTC-7 so I changed to back to UTC and now the Google rich snippets displays the correct date. This will cause some problems for blog postings. Any idea how to fix it or it is a known bug? I’m using TEC 4.1.2.

    thanks

    https://wordpress.org/plugins/the-events-calendar/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @supremius,

    Thanks for reaching out and sorry for the delay in our reply!

    I’ve inspecting the code that outputs the Structured Data (class Tribe__Events__Google_Data_Markup__Event) and I see this is intentional, dates are converted to UTC/GMT usign the WordPress function get_gmt_from_date before output.

    Is this not showing correctly for you in the actual search results or you where just testing the data?

    Best,
    Nico

    Thread Starter supremius

    (@supremius)

    Hi Nico,

    Yes, Google search results showed the incorrect date/time for their rich snippet date. I had it set in WordPress to UTC-7 so there was a 7-hour difference from the actual event time. An event on May 10 at 7pm displayed as May 11 in Google search results.

    I changed my site back to the original UTC setting and it appears fine now in Google results but I figure it may cause some problems when putting up blog posts.

    Thanks for investigating further!

    I’m not sure why/how my earlier reply to this thread was deleted, but I am having the same problem.

    For instance, I have an event that takes place on July 1 from 7:30 PM to 9:30 PM (Eastern). The ISO start time shows as 2016-07-01T23:30:00+00:00 when it should be 2016-07-01T19:30:00-04:00. In Google search listings, the event is listed as taking place from July 1 to July 2.

    @jjbte: If you require assistance then, as per the Forum Welcome, please post your own topic.

    I did post my own thread about a month ago. I should have linked to it in my earlier reply here, but I didn’t think to do so.

    I’m sorry, I didn’t mean to cause any trouble.

    Brook

    (@brook-tribe)

    Howdy supremius,

    Thank you for reaching out about this!

    I was not able to replicate this problem on a test server. You’ll notice our demo server does not have this issue: http://wpshindig.com/event/womens-javascript-study-group/2016-06-01/

    Timezone problems are often caused by conflicts. Due to how PHP is designed if one plugin changes certain Timezone settings it affects all plugins. In order to proceed you will need to test if a “conflict” is happening, and if so narrow it down so a fix can be found for it. This guide walks you through how to test for a conflict, and then identify what is conflicting.

    Thanks again for reaching out. Cheers!
    – Brook

    Hi Brook and supremius. There is actually a timezone issue with the WP Shindig link Brook shared. I explain in detail in my latest reply to my own thread about timezone issues.

    Thanks for the heads up @jjbte! I’ll be interested in what the results of @supremius’s conflict test is so we can continue to dig into this more.

    Thread Starter supremius

    (@supremius)

    Hi, using the Google Structured Data Testing Tool the link Brook provided also shows the incorrect date/time which is a 7 hour difference.

    Google sees this:

    startDate 2016-06-02T01:30:00+00:00
    endDate 2016-06-02T04:00:00+00:00

    TEC displays this:

    June 1 @ 6:30 pm – 9:00 pm

    thanks for investigating!

    p.s. Just saw jjbte had the same results in their thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The Events Calendar Rich Snippet Displaying Wrong Time’ is closed to new replies.