Simfatic Forms > Help > Troubleshooting > Error: date(): It is not safe to rely on the system's timezone

Simfatic Forms is being discontinued.

See the announcement →

Error: date(): It is not safe to rely on the system's timezone

Error (2): 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.


On some web servers, it throws this error when you upload Simfatic Forms script (or any other PHP script that uses PHP's date() function)

In the PHP configuration file (php.ini) we are supposed to set the default time zone setting like this. Usually, the hosting service provider or web server administrator will set this while configuring the web server. If they missed it, you will get this error.

More information:
date.timezone
http://answers.google.com/answers/threadview/id/739376.html
http://sourceforge.net/projects/phpmyadmin/forums/forum/72909/topic/2683543

Solution

One way to get this error corrected is to request your web server admin to fix the time zone settings.

If the admins don't help, try this extension module below. It sets the date.timezone settings before the rest of the script is run.

Back to troubleshooting main page