Knowledgebase
It is not safe to rely on the system's timezone settings (how to fix it)
Posted by WestNIC Support on 29 November 2012 03:28 AM

Occasionally, you may receive following warning on main page (especially, Joomla):

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 'America/Chicago' for 'CST/-6.0/no DST' instead

How to resolve it:

1. Please open your php.ini file located within public_html folder. If it's missing, please create blank php.ini file.

2. Add following line inside php.ini: 

date.timezone="America/Chicago"

3. Save file then lock it with permissions 400.

Please note: if you receive permission error during file save, please make sure that file has 600 permissions then edit again and save. You can set correct permissions via any FTP client or cPanel File Manager (select file, right click then select permissions).

(1 vote(s))
This article was helpful
This article was not helpful

Help Desk Software by Kayako Resolve