Jump to content
  • 0

Question

Posted

HI again,

 

I am getting this error displaying on the frontend

 

Array ( [type] => 2 [message] => date_default_timezone_get(): 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. [file] => /var/www/mysite.com/public_html/lib/stdlib.php [line] => 15 )

 

 

Timezone is set in the settings as you can see.

timezone.png.b8725c07e31168e39dc8c8febfb7e7b4.png

 

I tried manually adding the timezone into the stated file on line 15, but it didn't seem to make any difference.

I don't think im suppose to be doing that anyway to be honest.

 

Thanks all

 

2 answers to this question

Recommended Posts

  • 0
Posted

Thanks again for the help.

 

 

For anyone else that comes up against this error, its a system error not a blesta error

To fix it, locate your php.ini (in my case /etc/php.ini) and uncomment

date.timezone =.

check here for your timezone http://php.net/manual/en/timezones.php and add in the correct one for you.

example: date.timezone = "US/Central"

if the line doesn't exist you can just add it.

 

Thanks

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...