Support » Plugin: Better Google Analytics » Unknown or bad timezone error

  • Latest version of the plugin, on PHP7.0 and Ubuntu 16.04.2.

    Just saw this in my error log:

    2017/05/16 18:15:01 [error] 6268#0: *6173126 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone () in /var/www/
    Stack trace:
    #0 /var/www/ DateTimeZone->__construct('')
    #1 /var/www/ DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetStart(Array)
    #2 /var/www/ DigitalPointBetterAnalytics_Model_Widget::getStatsWidgetData()
    #3 /var/www/ DigitalPointBetterAnalytics_CronEntry_Jobs::hour()
    #4 /var/www/ WP_Hook->apply_filters('', Array)
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author digitalpoint


    What is your timezone set to under your WordPress settings? There was some changes to internal timezone calculations recently and have been trying to track down why a couple people are seeing what you see.

    It was on UTC+3, and displaying the correct time. I’ve now changed it to Jerusalem – which is usually UTC+2 but now on DST – so I don’t need to think about going back and forth to/from DST.

    setting the wordpress time zone to a text one like America/Santiago worked for me.
    i think the problem is the UTC-number format.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unknown or bad timezone error’ is closed to new replies.