“date(): It is not safe to rely on the system’s timezone settings”
I got the below error while sending email using class.phpmailer.php
“date(): It is not safe to rely on the system’s timezone settings”
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Update php.ini file OR create a new one and paste the below code in it.
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Kolkata