Title: PHP Deprecated: WPSEO_Sitemap_Timezone::format_date ..wp-includes/functions.php
Last modified: October 20, 2020

---

# PHP Deprecated: WPSEO_Sitemap_Timezone::format_date ..wp-includes/functions.php

 *  Resolved [jimbo777](https://wordpress.org/support/users/jimbo777/)
 * (@jimbo777)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/)
 * PHP Version 7.4.3
    Timezone: UTC +1 Date Format: 20/10/2020 d/m/Y
 * My debug.log is filling up with 100s of lines:
 * [20-Oct-2020 09:54:57 UTC] PHP Deprecated: WPSEO_Sitemap_Timezone::format_date
   ist seit Version WPSEO 12.8 **veraltet**! Benutze stattdessen Date_Helper::format.
 * Anything I can do to prevent this?
    If this issue is not related to Yoast, please
   let me know.
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13556620)
 * Hello [@jimbo777](https://wordpress.org/support/users/jimbo777/),
 * Thanks for reaching out!
 * Can you please confirm that you have updated your Yoast SEO from 12.8 to 15.1.1?
   Also are you running WordPress 5.5.1?
 *  Thread Starter [jimbo777](https://wordpress.org/support/users/jimbo777/)
 * (@jimbo777)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13556912)
 * Just double checked… Wp 5.5.1 and Yoast 15.1.1 confirmed
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13557000)
 * Thanks [@jimbo777](https://wordpress.org/support/users/jimbo777/).
 * There is an issue with the time zones that is causing this. Kindly go to WordPress
   >
    Settings > General and change the time zone to a city near you or a different
   city; it should resolve the issue. If you still find such errors in the log after
   the change, do let us know and also share the URL of your site.
 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13560856)
 * It’s most likely outdated PHP code (outside Yoast SEO plugin – it could be 3rd
   plugin or custom PHP code) which calls method format_date (from deprecated class
   WPSEO_Sitemap_Timezone).
 * You should find source file and the easiest way is debug backtrace. You can use
   xdebug PHP extension, Query Monitor or custom PHP code to log/see full debug 
   backtrace.
 * More details:
    [https://www.php.net/manual/en/function.debug-backtrace.php](https://www.php.net/manual/en/function.debug-backtrace.php)
   [https://gist.github.com/jrfnl/5925642](https://gist.github.com/jrfnl/5925642)
 *  Thread Starter [jimbo777](https://wordpress.org/support/users/jimbo777/)
 * (@jimbo777)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13561337)
 * great thanks! Changing the time zone to a city did not help but the backtrace
   code helped. I narrowed it down to a conflicting plugin. Removed plugin and issue
   seems gone now.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13564996)
 * [@jimbo777](https://wordpress.org/support/users/jimbo777/) Thanks for confirming
   that this has corrected it. We are going ahead and marking this issue as resolved
   but please let us know if you require any further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP Deprecated: WPSEO_Sitemap_Timezone::format_date ..wp-includes/functions.
php’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)

 * 6 replies
 * 4 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/php-deprecated-wpseo_sitemap_timezoneformat_date-wp-includes-functions-php/#post-13564996)
 * Status: resolved