[op5-users] Warning: date_default_timezone_get()

Per Åsberg perasb at op5.com
Thu Oct 29 09:34:00 CET 2009


Deon Vermeulen wrote:
> I keep getting the below error when opening NINJA.
> 
> *Warning*:  date_default_timezone_get() 
> [function.date-default-timezone-get 
> <http://ipaddress/ninja/function.date-default-timezone-get> ]: It is not 
> safe to rely on the system's timezone settings. You are *required* to 
> use the date.timezone setting or the date_default_timezone_set() 
> function. In case you used any of those methods and you are still 
> getting this warning, you most likely misspelled the timezone 
> identifier. We selected 'Africa/Windhoek' for 'WAST/2.0/DST' instead in 
> */usr/local/nagios/addons/ninja/system/core/Kohana.php* on line *159
> *
> Can someone please help?

I have never seen this error before but I believe that you could fix it by 
copying ninja/system/config/locale.php to ninja/application/config and then 
set the timezone in $config['timezone'].
See http://php.net/timezones for a list of timezones.

Hopefully this will help.

Regards,

/Per

---------------
Per Asberg
Senior Developer
www.op5.com


More information about the op5-users mailing list