Was getting following error while installing a php script:
” 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 … “
1) One way to approach this is to let php know what your time zone
is. You can edit your php.ini file and put in the following line:
date.timezone = “Asia/Dhaka”
2) But this was not effective immediately to the script. So best way I found is to insert a line at the top of the “functions.php” file – this is the file where the error was originated. The line was as below:
date_default_timezone_set(‘Asia/Dhaka’);
And that solves the issue.