Top Hosting Forum

WebHosting Reviews Forum


How to solve: date() [function.date]: It is not safe to rely

Website Development is a general forum for Website Development related issues including questions on codes such as PHP, HTML and Javascript
Hosting Forum Description
Website Development is a general forum for Website Development related issues including questions on codes such as PHP, HTML and Javascript

How to solve: date() [function.date]: It is not safe to rely

Postby hostingforum » Mon Oct 08, 2012 5:57 pm

Hi there, this happend to me in my image hosting script. Script told me this error message:

Warning: date() [function.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 /home/public_html/***.php on line ***


And i solved it by adding php.ini file into website root folder. Like /public_html/php.ini

Add new line into php.ini file:

date.timezone = "America/New_York"

save file and you should be ok now..



hostingforum
Site Admin
 
Posts: 671
Joined: Fri May 20, 2011 7:58 pm

Return to General Website Development & Programming

Who is online

Users browsing this forum: No registered users and 3 guests

.