For some reason you guys deleted my last post without informing me.
I’ve installed a new calendar plugin and the time has messed up for my events. It shows different time compared to what I select. The other plugins dev said it isn’t their issue and they can’t help. I also tried solution posted on other threads and it didn’t work for me.
can you please help me out so I can start use both the plugins
Anyway, I’m not sure which other plugin you are using, but if you open up the other plugin’s files in an IDE, you can look for use of the date_default_timezone_set() function, and remove that code. See also:
wouldn’t that be a temporary fix? Like, if I update the other plugin, then my updates will be wiped off. Well, i’m using modern events calendar along with EE which is causing this problem
So if another plugin changes the timezone using date_default_timezone_set() it causes the problem as now the default time is not UTC, its whatever the plugin set it to. So then EE pulls the time (which now incorrectly has an offset applied) and applies an offset based on your date settings which throws out the dates/times.
/**
* Get GMT offset based on hours:minutes
* @author Webnus <info@webnus.biz>
* @return string
*/
public function get_gmt_offset()
{
$gmt_offset = get_option(‘gmt_offset’);
The support post ‘Time and date conflict on EE4’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.