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.

ARUN Post in PHP
0

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.

Solution :

Open the appropriate file that is giving the error

On top before the first function add :

date_default_timezone_set(‘UTC’);

date_default_timezone_set(‘America/Los_Angeles’);

date.timezone=”America/New_York”   — > works

 

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.