Event Date not Displaying Correctly
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Event Date not Displaying Correctly’ is closed to new replies.