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”
Update php.ini file OR create a new one and paste the below code in it.
; Defines the default timezone used by the date functions
date.timezone = Asia/Kolkata