public static function DrupalPHPMailer::RFCDate in PHPMailer 6.2
Same name and namespace in other branches
- 5.2 includes/phpmailer.class.inc \DrupalPHPMailer::RFCDate()
- 6.3 includes/phpmailer.class.inc \DrupalPHPMailer::RFCDate()
- 6 includes/phpmailer.inc \DrupalPHPMailer::RFCDate()
- 7.4 includes/phpmailer.class.inc \DrupalPHPMailer::RFCDate()
- 7.3 includes/phpmailer.class.inc \DrupalPHPMailer::RFCDate()
Public wrapper around PHPMailer::RFCDate().
File
- includes/
phpmailer.class.inc, line 175
Class
- DrupalPHPMailer
- Base PHPMailer for Drupal implementation with support for SMTP keep-alive and setting a custom Return-Path.
Code
public static function RFCDate() {
$tz = date('Z');
$tzs = $tz < 0 ? '-' : '+';
$tz = abs($tz);
$tz = (int) ($tz / 3600) * 100 + $tz % 3600 / 60;
$result = sprintf("%s %s%04d", date('D, j M Y H:i:s'), $tzs, $tz);
return $result;
}