Environment: PhpGedView Version 4.2.4, PHP Version 5.3.5, Apache under Windows
Problem: getting "Warning: date() [function.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."
Cause: (official explanation at http://php.net/manual/en/function.date-default-timezone-set.php\) Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable.
1. modifying php.ini file by finding the line “date.timezone =”, uncomment it, and set the value like
date.timezone = “Europe/Istanbul”;
2. modifying config.php file by adding a line like
Since the first solution needs admin privilages for the server, the second way is more convenient.
There should be a variable for timezone in config.php which is set to a default value if no local value is found. This value should also from admin.php