0 like 0 dislike
1.3k views

ERROR PHP Warning:  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 ‘UTC’ for ‘UTC/0.0/no DST’

in Education & Reference by | 1.3k views

1 Answer

0 like 0 dislike
Best answer

SOLUTION

Add php timezone:

nano +639 /etc/php.ini

Uncomment date.timezone =

OR

add the following line

date.timezone = "America/New_York"  
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
1 like 0 dislike
2 answers
asked Sep 7, 2017 in Education & Reference by Simmi (620 points) | 82 views
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,225 questions
1,370 answers
559 comments
2,099 users