It is not safe to rely on the system's timezone settings (how to fix it)

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).

  • Email, SSL
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Fatal error: Class 'PDO' not found

My website is showing "Fatal error: Class 'PDO' not found" Please edit php.ini file....

Error: Warning: ini_set has been disabled for security reasons

If you received "Warning: ini_set() has been disabled for security reasons" during script install...

Fatal error: Incompatible file format

Issue: when you visit website, it shows similar error: "Fatal error: Incompatible file format:...

ionCube PHP Loader error on website after PHP upgrade (from php 5.3.x to php 5.4.x)

Issue: When you access website via web browser, it produces similar error: "Site error: the...

Moodle "Unicode format UTF-8" error during manual installation or upgrade

You may receive following error during new Moodle manual installation or upgrade: It is required...

Powered by WHMCompleteSolution