Welcome Guest, Not a member yet? Register   Sign In
Error : Strict Standards: date()
#3

You could also run into this issue when running your website on a shared hosting. Not all hosting providers have the timezone set in php.ini
I have seen this on a few different hosting providers.

I just add this at the top of the index.php file
PHP Code:
/*
|---------------------------------------------------------------
| DEFAULT TIMEZONE
|---------------------------------------------------------------
| Set the default timezone for date/time functions to use if
| none is set on the server. Set it to your location
*/
if( ! ini_get('date.timezone') ) {
 
   date_default_timezone_set('Europe/Amsterdam');

Reply


Messages In This Thread
RE: Error : Strict Standards: date() - by Narf - 10-22-2015, 04:46 PM
RE: Error : Strict Standards: date() - by Martin7483 - 10-23-2015, 01:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB