PHP: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings

If you see this in one of your php page, find this line in your php.ini file:


; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

decomment it and out your timezone:


; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Rome"

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *