WebSite X5Help Center

 
Luis S.
Luis S.
User

Server error php date()  en

Autor: Luis S.
Besucht 1695, Followers 1, Geteilt 0  

I was testins the email form, but I got the following error: 

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. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/solarsup/public_html/res/x5engine.php on line 7254

So I contacted support and they told me that the variable date() is not safe so I would need to use another one instead, I tried to use some other scripts, but the error is the same.

Please advice.

Gepostet am
1 ANTWORTEN
Incomedia
Claudio D.
Incomedia

Hello Luis,

This message is from the hosting server to inform you the timezone is not set in the hosting settings and it is using UTC as default.

It will be required or to set the timezone on the hosting server or ask them to disable the appearance of the server messages on the website, since this is enabled. The function will work since it used in these cases as default UTC but it would be better to have this set directly on the hosting server.

Many thanks!

Mehr lesen
Gepostet am von Claudio D.