InValid TimeZone

Forum for questions and support relating to the 1.29.x releases only.
Hallucinative
Posts: 1
Joined: Mon Oct 01, 2018 8:34 am

Re: InValid TimeZone

Post by Hallucinative » Mon Oct 01, 2018 8:47 am

Incase anyone else runs in to this issue,

My installation was working fine on Ubuntu , Minus a timezone annoyance in my event history, I wanted to fix it, I changed my php.ini timezone to UTC as a test, when i changed it back to the original timezone all hell broke lose, I started getting said error, reinstalled php.ini with a backup, nothing fixed it.

I modified /usr/share/zoneminder/www/index.php
From:
// Check time zone is set
if (!ini_get('date.timezone') || !date_default_timezone_set(ini_get('date.timezone'))) {
date_default_timezone_set('Australia/Perth');
Fatal( "ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone" );
}

to:
// Check time zone is set
//if (!ini_get('date.timezone') || !date_default_timezone_set(ini_get('date.timezone'))) {
date_default_timezone_set('Australia/Perth');
// Fatal( "ZoneMinder is not installed properly: php's date.timezone is not set to a valid timezone" );
//}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest