i have a login script in that i check if a certain timeperiod has passed or not. to realize that i have a timestamp that i fetch with strtotime from my db so that i easily can add to this time/string a value of seconds to check if this specific date/time has passed.
yesterday i updated to php 5.3. now i get an error message:
Warning: strtotime() [function.strtotime]: 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 /xxx/xxx/xxxx/xxx/login.php on line xx
which realates on this line:
$DOA = strtotime($row->DOA);
the question is, how can i use:
date.timezone = "Europe/Berlin"
date.default_latitude = 52.5194
date.default_longitude = 13.4067
to convert the timestamp
$row->DOA
that i have to get as a string. or is this:
date.timezone = "Europe/Berlin"
date.default_latitude = 52.5194
date.default_longitude = 13.4067
just an information that i should add because it is said that
We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead...
is used.
if there is somebody who could give me advise to solve this i really would appreciate.
I think its just that PHP timezone isn’t set. So you can do that in php.ini or declare it in your php file.
See if that eliminates your error.