Timezone is wrong
-
You have a problem in your adrotate_date_start function, it leaves the website timezone as UTC instead of what it is set in WordPress. So any widget/plugin etc that is fired after your plugin will result in the timezone being wrong.
So to fix this at the end of the widget function I added this to return the site back to the proper timezone.
$timezone = get_option(‘timezone_string’);
if($timezone) date_default_timezone_set($timezone);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Timezone is wrong’ is closed to new replies.