tags:

views:

24

answers:

2

Getting strtotime error in php-codeigniter and the problem arises only in windows 7 not in windows xp. Error : [2048] strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '5.5/no DST' instead

Any help.

A: 

In your php.ini file, put this (or your own timezone):

date.timezone = "US/Central"
Matthew
tried and getting the same error.
ASD
Restarted your web server?
Lauri Lehtinen
Yes. I checked it after restarting the webserver.
ASD
A: 

It's safe to ignore this error if the time isn't critical. Change error_reporting from E_STRICT to hide the error.

stormdrain