diff options
author | alecpl <alec@alec.pl> | 2008-04-17 20:05:58 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-04-17 20:05:58 +0000 |
commit | ea090ca09d2ee04c68c524f0e3c63de2fdb21a04 (patch) | |
tree | 4c52aea90a9e7ab2ae99c9c69cecb9daeab0ae7a /program/steps | |
parent | f294da0d9e2088fe663228f796cd8d2df2c03972 (diff) |
- Fix non-RFC dates formatting (#1484901)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/func.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index b75b1150c..40c17b792 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -970,7 +970,7 @@ function rcmail_message_headers($attrib, $headers=NULL) continue; if ($hkey=='date' && !empty($headers[$hkey])) - $header_value = format_date(strtotime($headers[$hkey])); + $header_value = format_date($headers[$hkey]); else if (in_array($hkey, array('from', 'to', 'cc', 'bcc', 'reply-to'))) $header_value = Q(rcmail_address_string($headers[$hkey], NULL, $attrib['addicon']), 'show'); else @@ -1500,7 +1500,7 @@ function rcmail_send_mdn($uid) $body = rcube_label("yourmessage") . "\r\n\r\n" . "\t" . rcube_label("to") . ': ' . rcube_imap::decode_mime_string($message['headers']->to, $message['headers']->charset) . "\r\n" . "\t" . rcube_label("subject") . ': ' . $message['subject'] . "\r\n" . - "\t" . rcube_label("sent") . ': ' . format_date(strtotime($message['headers']->date), $CONFIG['date_long']) . "\r\n" . + "\t" . rcube_label("sent") . ': ' . format_date($message['headers']->date, $CONFIG['date_long']) . "\r\n" . "\r\n" . rcube_label("receiptnote") . "\r\n"; $ua = !empty($CONFIG['useragent']) ? $CONFIG['useragent'] : "RoundCube Webmail (Version ".RCMAIL_VERSION.")"; |