Support

Home Forums Event Espresso Premium Start Time's aren't correct anywhere

Start Time's aren't correct anywhere

Posted: March 13, 2017 at 3:09 pm

Viewing 5 reply threads


tomorrowmedia

March 13, 2017 at 3:09 pm

I am using Event Espresso to list events. However nowhere does it have the correct start-dates. For example: I have an event set for 5pm to 7pm. In my event listing code I have it saying it starts at 9pm. On the Event edit page it says 12pm. While on the event page it says 4pm. What is going on with all these inconsistencies?


Garth

  • Support Staff

March 13, 2017 at 3:34 pm

Hi.

What are your Time Zone settings for WordPress? WordPress> Settings> General > Timezone?

Can you clarify:

In my event listing code I have it saying it starts at 9pm.

What is your code, is that custom code?


tomorrowmedia

March 13, 2017 at 3:39 pm

Hi, yes it is custom code. I am using this code in a WP_Query

 $wp_query = new EE_Event_List_Query( $args );

      if (have_posts()) : while (have_posts()) : the_post();

      EE_Registry::instance()->load_helper('Event_View');
      EE_Registry::instance()->load_helper('Venue_View');

      $event_date_start = $wp_query->post->event_start_date;
      $event_date_end = $wp_query->post->event_end_date;
      $event_time_month = date('F', strtotime($event_date_start));
      $event_time_listing = date('F j, Y g:i a', strtotime($event_date_start));
      $event_time_day = date('d', strtotime($event_date_start));

My timezone settings are set to UTC-5


Seth Shoultes

  • Support Staff

March 13, 2017 at 5:19 pm

Hi there,

It sounds like another plugin (or maybe the theme) is using the date_default_timezone_set() function to change the timezone on the server. Can you try disabling the other plugins or temporarily switching the theme to see if that helps?


tomorrowmedia

March 17, 2017 at 11:44 am

Hi,

I did a complete search of my installation and it couldn’t find a trace of date_default_timezone_set().


Lorenzo Orlando Caum

  • Support Staff

March 17, 2017 at 1:11 pm

Hello,

Do you see the correct times if you temporarily switch to defaults?

For example, other plugins deactivated with a default WordPress theme?


Lorenzo

Viewing 5 reply threads

The support post ‘Start Time's aren't correct anywhere’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso