You are here

function MimeMailPHPMailer::RFCDate in PHPMailer 6

Returns the proper RFC 822 formatted date.

File

includes/mimemail.inc, line 114

Class

MimeMailPHPMailer

Code

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;
}