Category: PHP

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

* Open the php.ini

vi /etc/php.ini

* Search for timezone


* Add Europe/London to setting

; Defines the default timezone used by the date functions
date.timezone = "Europe/London"

;date.default_latitude = 31.7667

;date.default_longitude = 35.2333




How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.