Events Made Easy › Forums › Generic › Calendar widget a whole day ahead?
- This topic has 9 replies, 3 voices, and was last updated 14 years ago by
Anonymous.
-
AuthorPosts
-
Fri 14 Jan 2011 at 04:47 #42414
Anonymous
InactiveMy calendar is showing that it is tomorrow. It’s done this on two separate sites in two different time zones.
Where/How can I fix this? I couldn’t find anything, but then again, I’m not super code-savvy.
Thanks!
Fri 14 Jan 2011 at 08:24 #46255Franky
KeymasterThen the time on your server might be wrong …
Sun 16 Jan 2011 at 01:37 #46256Anonymous
InactiveThe blog’s time is fine. Just the calendar widget. Is there a way you can get the calendar to run off what the blog settings are?
Sun 16 Jan 2011 at 01:40 #46257Franky
KeymasterIt does run off the blog settings, but then again, it might be a bug in that version. Please try what I suggested here (see http://www.e-dynamics.be/bbpress/topic.php?id=386#post-1860):
add these in events-manager.php around line 145 (just before all the includes):
$tzstring = get_option('timezone_string');
if (!empty($tzstring) ) {
@date_default_timezone_set ($tzstring);
}Sun 16 Jan 2011 at 01:41 #46258Anonymous
InactiveI’m on a shared server and I don’t have control over what the time says there.
This is the best widget/plugin for events.
Sun 16 Jan 2011 at 10:03 #46259Franky
KeymasterThe code I mentioned is for EME, did you try it?
Sun 16 Jan 2011 at 14:37 #46260Anonymous
InactiveServer clocks are often set to UTC (Greenwich Mean Time). If you are located in the U.S. and your server clock is set to UTC it will be one day ahead of your local date during several hours of each day. However, the code Franky suggested above will force use of the timezone you have set for your blog instead of the timezone set for the server. I can confirm that it works. I am testing EME on a server set to UTC, but EME is using the blog timezone.
Mon 17 Jan 2011 at 04:19 #46261Anonymous
InactiveI didn’t see the code before I posted the reply, sorry. I will try it and let you know what happens.
Thanks for your quick replies!
Thu 20 Jan 2011 at 03:40 #46262Anonymous
InactiveI first uninstalled the plugin and then re-installed it. Not sure why that worked because it was the same version both times…
Either way it is fixed now.
Thanks for your help! Minus a few quirks it is a great plugin!
Fri 25 Feb 2011 at 03:41 #46263Anonymous
InactiveOk, it’s un-fixed. I updated the plug-in and we’re back to being a day ahead. I double checked the UTC time settings on the blogs (there are currently 2 using it) and it is correct for the timezone. The fix on the other thread didn’t work (I see you added timezone code in anyway, so this should be unnecessary) and any time I edit events-manager.php it ends in a fatal error and deactivates (line 1307 I think), even if I remove whatever I added in.
I’m at a loss. Any help would be appreciated!
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.