Support » Plugin: Ultimate Ads Manager » potential issue with WP 5.3 and timezone

  • Resolved mdmullinax

    (@mdmullinax)


    Noting this more as a PSA and awareness for UAM team.

    We use Ultimate Ads Manager version 2.4.0

    After updating to WordPress 5.3 the events we show on our calendar started showing with UTC times instead of our timezone times (CST, -6)…So 12p-1p showed as 5p-6p. A combination of WP 5.3, The Events Calendar 4.9.11 and Ultimate Ads Manager 2.4.0 in use caused this issue.

    The issue has been discussed in a thread on The Events Calendar plugin:
    https://wordpress.org/support/topic/timezone-is-off-displaying-utc-on-all-events/

    This thread cited use of date_default_timezone_set in other plugins can result in UTC times as we were seeing and referenced 5.3 documentation recommending plugins no longer use the function to set default timezone (see: https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/).

    Searching across our plugins there’s usage in statistics-calculator.php. Commenting out the date_default_timezone_set line fixed our issue.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘potential issue with WP 5.3 and timezone’ is closed to new replies.