Title: PHP Notice Error: date_default_timezone_set()
Last modified: August 24, 2016

---

# PHP Notice Error: date_default_timezone_set()

 *  Resolved [mewcrazy](https://wordpress.org/support/users/mewcrazy/)
 * (@mewcrazy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notice-error-date_default_timezone_set/)
 * Hello,
 * When wp debug is on I get the folllowing notice:
 * Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone
   ID ‘PDT’ is invalid in /home/two47cam/public_html/assets/plugins/adrotate/adrotate-
   statistics.php on line 333
 * Can I fix it from my side or do you need to fix it in your plugin?
 * Kind Regards,
    Dennis
 * [https://wordpress.org/plugins/adrotate/](https://wordpress.org/plugins/adrotate/)

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notice-error-date_default_timezone_set/#post-6112679)
 * If your server reports PDT as the timezone and that somehow isn’t valid then 
   that’s a thing in your server configuration. Not much I can do about that.
 *  Thread Starter [mewcrazy](https://wordpress.org/support/users/mewcrazy/)
 * (@mewcrazy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notice-error-date_default_timezone_set/#post-6112683)
 * Obviously you are right, I didn’t have enough sleep as I wrote the question 😀
 * _PHP
    date\_default\_timezone\_set(‘America/Los\_Angeles’);
 * OR
 * _PHP.INI
    date\_default\_timezone\_set=”America/Los\_Angeles”
 * Fixed it.
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-notice-error-date_default_timezone_set/#post-6112739)
 * Great! 🙂

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

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

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/php-notice-error-date_default_timezone_set/#post-6112739)
 * Status: resolved