Jump to content

Recommended Posts

Posted

Hello gents, I am having an error like this

Strict Standards: 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 'America/New_York' for 'EDT/-4.0/DST' instead in /homepages/10/d731413587/htdocs/ftv/core/modules/news/news.php on line 45 

How can I change this or what should I put onto line 45 ?

Thanks in advance .

  • Administrators
Posted

Add time zone to your php.ini. The example below is for UTC, but you can choose any time zone you want.

date.timezone = "UTC"

Posted

Yes,  I think I figured out the problem by adding this   

date_default_timezone_set('UTC');

 

to my local.config.php file. I dont know if it is a permanent solution, however it seems all good now. Thank you very much again.

  • Administrators
Posted
18 minutes ago, ERDEM said:

Yes,  I think I figured out the problem by adding this   

date_default_timezone_set('UTC');

 

to my local.config.php file. I dont know if it is a permanent solution, however it seems all good now. Thank you very much again.

That works too. You'd have to contact your host about where the php.ini file is

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...