Hello,
I have installed the latest version of Piwigo. If I login as an administrator I see the next warning in many different places. Pleas, advice me how to fix it?
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 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/golsegenen/public_html/piwigo/include/smarty/libs/Smarty_Compiler.class.php on line 400
VolodiaS wrote:
Hello,
I have installed the latest version of Piwigo. If I login as an administrator I see the next warning in many different places. Pleas, advice me how to fix it?
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 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/golsegenen/public_html/piwigo/include/smarty/libs/Smarty_Compiler.class.php on line 400
If you are administrator on your server, you can change the php.ini files to add the correct timezone.
If not, you can add such a line in local/config/config.inc.php :
date_default_timezone_set('Europe/Berlin');
Hope it helps.
Offline
topic already solved many times in the forum: the next time a search will give you quickly the answer
Offline
Thank you very much!
I read on the forum how to fix the problem and it's gone.
I did it with the help of LocalFiles Editor.
Geeze, a google search, and two links latter and I still don't have the real solution... :P
(host):user:~/piwig> find . -name config.inc.php
./plugins/TakeATour/tours/first_contact/config.inc.php
./plugins/TakeATour/tours/2_7_0/config.inc.php
./plugins/TakeATour/tours/privacy/config.inc.php
None of these have date_default_timezone_set() in it. which one to I add it to?
This fixed it for me:
http://piwigo.org/forum/viewtopic.php?p … 14#p159014