【发布时间】:2017-11-20 07:28:28
【问题描述】:
错误:可用 Erro na Linha:#3274 :: date_default_timezone_get():依赖系统的时区设置是不安全的。您需要使用 date.timezone 设置或 date_default_timezone_set() 函数。如果您使用了这些方法中的任何一种,但仍然收到此警告,您很可能拼错了时区标识符。我们现在选择时区“UTC”,但请设置 date.timezone 以选择您的时区。 C:\AppServ\www\class\phpmailer.class.php Erro no envio do e-mail: SMTP connect() failed.
public static function rfcDate()
{
// Set the time zone to whatever the default is to avoid 500 errors
// Will default to UTC if it's not set properly in php.ini
date_default_timezone_set(@date_default_timezone_get());
return date('D, j M Y H:i:s O');
}
【问题讨论】: