I have a raspberry pi, and i have set iy up running apache2, php and mysql and have my website up and running, so far so good
pat myself on the back
But i now have this problem on my website when i am logged in :–
Warning: mktime(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/include/functions.inc.php on line 498Warning: 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /var/www/include/functions.inc.php on line 498
Warning: mktime(): 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /var/www/include/functions.inc.php on line 498
Warning: 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /var/www/include/functions.inc.php on line 498
also i get this one even after the changes and apache restart
Warning: strftime(): 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /var/www/include/smarty/libs/Smarty_Compiler.class.php on line 400
So i have been looking around for a solution and was given this :–
add in your php.ini in the php folder.
date.timezone = Europe/London
and then reload Apache configuration:
/etc/init.d/apache2 force-reload
but i still get the same problem.
now line 498 in /var/www/include/functions.inc.php is:-
[php]
$formated_date.= $lang[‘day’],$ymdhms[2],$ymdhms[0]))];
[/php]
and line 400 in /var/www/include/smarty/libs/Smarty_Compiler.class.php is:-
[php]
$template_header = "<?php /* Smarty version ".$this->_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n";
[/php]
Can anyone advise on this?
Thanks in advance