• Resolved ginganian

    (@ginganian)


    It appears the front-end of the event details do not display correctly if the timezone is set far enough apart from UTC.

    For example, if I create an event on 2/26 at 9pm on the -6 timezone, it will be displayed as 2/27 at 3am.

    I’ve been able to fix this by adjusting the function get_mep_datetime() in mep_functions.php. It appears the date_i18n() function used accepts a strtotime() timestamp that needs to be adjusted by the timezone offset in seconds.

    Adjusting the strtotime() timestamp that’s being passed to date_i18n() by the intended timezone’s offset appears to fix the issue.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Md. Abdullah Al Mahim

    (@aamahin)

    Hello @ginganian

    Thanks for your message, Yes It’s true there is some issue with date_i18n, we got some other complaint from our customers, We are working on it and thinking to replace the date_i18n by wp_date and of course this time the date will adjust by timezone offset while convert it in second by strtotime function. Hope this will fix the date issue permanently.

    Thanks Again.

    Regards,
    Mahin

Viewing 1 replies (of 1 total)
  • The topic ‘Event Date not Displaying Correctly’ is closed to new replies.