Skip to:
Content
Pages
Categories
Search
Top
Bottom

Unknown or bad timezone (Etc/UTC)'

  • @toomasr

    Member

    I installed the 1.0 release today and when browsing to Admin -> Settings I got the following exception:

    Fatal error: Uncaught exception ‘Exception’ with message ‘DateTimeZone::__construct() [function.DateTimeZone—construct]: Unknown or bad timezone (Etc/UTC)’ in /zeroturnaround.com/public_html/forum/bb-admin/options-general.php:180 Stack trace: # 0 /zeroturnaround.com/public_html/forum/bb-admin/options-general.php(180): DateTimeZone->__construct(‘Etc/UTC’) #1 {main} thrown in /zeroturnaround.com/public_html/forum/bb-admin/options-general.php on line 180

    I tried different stuff to get it working until I just changed the line to:

    $timezone_object = new DateTimeZone(date_create(‘+01:00’)->getTimeZone()->getName());

    Is there an actual solution?

  • You must be logged in to reply to this topic.
Skip to toolbar