Welcome Guest, Not a member yet? Register   Sign In
Error : Strict Standards: date()
#1

Hi,

There's still a bug in the latest CI (v. 3.0.2) that was in v. 2.1.4: an error with the timezone.

When I run CI straight out of the box, if I have the log threshold to anything above 1, I get a page full of error like this one:
Strict Standards: date(): 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 'Europe/Berlin' for 'CEST/2.0/DST' instead in home/htdocs/system/core/Log.php on line 176
(at least 15 times)

I know the way to fix this is to set the timezone in index.php:
if(ini_get('date.timezone') == '')
{
date_default_timezone_set('Europe/Paris');
}

or to whatever timezone you like from the PHP doc.

But I would have thought that would be fixed in this release of CI ! !


Cheers,
L@u
Reply


Messages In This Thread
Error : Strict Standards: date() - by ComputingFroggy - 10-22-2015, 03:06 PM
RE: Error : Strict Standards: date() - by Narf - 10-22-2015, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB