RE: “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”

arjun Team Leader Asked on December 11, 2018 in PHP.
Add Comment
1 Answers

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

Team Leader Answered on December 13, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.