Support Login

PHP date time error Print

  • 12

I receieve the following error when running a PHP script in my account:

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

PHP version 5.3.28 and above does not support the function. So, to fix the issue, you will need to use an older version of PHP, such as 5.2.

You can change your accounts PHP version using the PHP Selector in cPanel:

https://my.hostmantis.com/knowledgebase.php?action=displayarticle&id=156

Was this answer helpful?

« Back