Bug #2207

Date header for E-mail incorrect.

Added by Peter Overtoom about 2 years ago. Updated about 2 years ago.

Status:Resolved Start date:02/16/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Notifications
Target version:2.1
Affected version:2.0.1 Affected Architecture:

Description

PFSense E-mail notification date header: "Date: Thu, 16 Feb 2012 16:43:35 CET"
Date deceleration according to RFC822: "Date: Thu, 16 Feb 2012 16:43:35 +0100"

GMail, for one, tries to interpret it as a RFC822 header and displays the wrong time for the E-mails.

Easy to solve by changing line 318 from notices.inc
From:
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
To:
"Date: ".date("r")

Explenation:
%Z gives either CET or +0100, depending on the operating system. date("r") is especially made for generating a RDC822 timestamp.

History

#1 Updated by Jim P about 2 years ago

  • Status changed from New to Feedback

Fix committed, thanks!

#2 Updated by Chris Buechler about 2 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF