• Last year, I began doing some work on a website which uses the Events Calendar WD plugin, and we have always been getting the following critical error on the WP Site Health page:

    PHP default timezone is invalid

    PHP default timezone was changed after WordPress loading by a date_default_timezone_set() function call. This interferes with correct calculations of dates and times.

    In another support thread for this plugin, the Plugin Author writes that this plugin doesn’t use the date_default_timezone_set() function. However, when I searched through the latest version of the plugin code, I found it is in fact being called in the plugin’s ecwd_class.php file, at line 149:

    
    if(!empty($timezone)) {
        date_default_timezone_set($timezone);
    }
    

    Are there any plans to replace this with some other function which won’t create this critical error? So far, we haven’t seen any time discrepancies between our entries and what appears on the calendar, but it still concerns me as it is showing as a critical error.

    Thanks in advance for your help.

  • The topic ‘Ongoing issue with timezone error’ is closed to new replies.