Support » Plugin: The Events Calendar Shortcode » ecs-list-events shortcode not using local time

  • Hi 🙂

    I’m using the shortcode below on my homepage and noticing past events are not dropping off until mid morning (Australian based). I believe this may have something to do with the plugin looking at UTC time and not local time as set in WordPress settings or event listings.

    [ecs-list-events limit=’4′ excerpt=’false’ thumb=’true’ thumbwidth=’280′ thumbheight=’210′ eventdetails=’true’ venue=’true’ viewall=’false’ contentorder=’thumbnail, title, date, venue’]

    Any help in correcting this would be most appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author Brian Hogg


    Hello! 🙂

    I believe the issue may be on line 115 of the plugin file. Instead of date( 'Y-m-d' ) it should probably be:

    $meta_date_date = current_time( 'Y-m-d H:i:s' );

    Are you able to try changing this line in the file and see if it does the trick? Make sure you have a backup first in case of any issues or ideally, test on a test site.

Viewing 1 replies (of 1 total)
  • The topic ‘ecs-list-events shortcode not using local time’ is closed to new replies.