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

Categories: BSD, Interwebz, Linux

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"

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.