Jump to content
  • 0

Timezone Error


Stu

Question

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

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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...