ERDEM Posted May 25, 2018 Report Share Posted May 25, 2018 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 . Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted May 25, 2018 Administrators Report Share Posted May 25, 2018 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" Quote Link to comment Share on other sites More sharing options...
ERDEM Posted May 25, 2018 Author Report Share Posted May 25, 2018 Thank you for the reply but where is that php.ini file ? Quote Link to comment Share on other sites More sharing options...
ERDEM Posted May 25, 2018 Author Report Share Posted May 25, 2018 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 25, 2018 Administrators Report Share Posted May 25, 2018 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.