I know timezones can be tricky between UTC, the server timezone and the user time zone in the WordPress environment. One of the timezone quirks I came across using this fabulous plug in showed up in my preferred monthly page of the calendar. Mousing over an event with a Start Time displayed everything properly except for the timezone in my case. When I enter a time in my calendar, I always use the local timezone, in my case 'America/New_York'. The Time Format option in WordPress is 'g:i A T' which shows the timezone as T. In the base install of Calendar (v 1.3.13), the functions that output the time were showing UTC in the formatted output rather than the correct EDT.
Without playing around too much with the base install, I put a
Code: Select all
function in the functions that output the formatted event time. In my theme's functions.php file, I hook in to this tag with a function that fires the date_default_timezone_set() function. I've attached a zip for consideration to build into the next release.
There is probably a way to handle this without user intervention but it seems there is so much variability on how WordPress users set up their timezone configuration. I figured an action hook won't interfere with how the plugin works but in cases where the format needs to be manipulated, each install can be customized with the additional action hooks.