• Resolved Rick

    (@murlyn)


    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);

    https://ww.wp.xz.cn/plugins/adrotate/

Viewing 1 replies (of 1 total)
  • Plugin Author Arnan

    (@adegans)

    Hmm yes, the code assumes UTC for everyone… Silly

    I’ll fix that for the next version.

Viewing 1 replies (of 1 total)

The topic ‘Timezone is wrong’ is closed to new replies.