• Resolved mewcrazy

    (@mewcrazy)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    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

    (@mewcrazy)

    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 de Gans

    (@adegans)

    Great! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice Error: date_default_timezone_set()’ is closed to new replies.