PHPMailer\PHPMailer
PHPMailer::rfcDate
Return an RFC 822 formatted date.
Метод класса: PHPMailer{}
Хуков нет.
Возвращает
Строку.
Использование
$result = PHPMailer::rfcDate();
Код PHPMailer::rfcDate() PHPMailer::rfcDate WP 7.0
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');
}