Title: PHP Notice: date_default_timezone_set()
Last modified: August 14, 2023

---

# PHP Notice: date_default_timezone_set()

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-notice-date_default_timezone_set/)
 * This started today, without changing anything. WP 6.2.x and PHP 8.1
 * [14-Aug-2023 04:05:49 UTC] PHP Notice: date_default_timezone_set(): Timezone 
   ID ” is invalid in /home/wp-content/plugins/ninjafirewall/lib/logs_firewall_log.
   php on line 26
 * Thanks

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-notice-date_default_timezone_set/#post-16970415)
 * It seems you didn’t define the timezone in WordPress.
   Go to the WordPress “Settings
   > General” page, select the correct timezone and save your changes. Then, go 
   back to the NinjaFirewall’s log page to check if PHP still throws a notice about
   it.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-notice-date_default_timezone_set/#post-16970435)
 * Hi, I have set the timezone in WP, since the site run for years, WITH Ninja Firewall.
 * What i did was, setting the same timezone in WP as i had in Ninja. And now the
   issue is gone. Strange.
 * Thanks

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

The topic ‘PHP Notice: date_default_timezone_set()’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dimal](https://wordpress.org/support/users/dimalifragis/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-notice-date_default_timezone_set/#post-16970435)
 * Status: resolved