Bug 207766

Summary: Bogus dates shown in email
Product: [Applications] kmail Reporter: Michael McLagan <mmclagan>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 1.12.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Header showing invalid dates
Selected message showing invalid dates.

Description Michael McLagan 2009-09-18 11:00:14 UTC
Version:           1.12.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    Fedora RPMs

I recently sent a couple of emails (in the last hour).  The system has the correct date but the display is showing really bad data, 2009-44-18 (or similar, see attached images).

The message itself looks ok:

From mmclagan@  Fri Sep 18 04:44:57 2009
From: Michael McLagan
To: 
Subject: Letter #3
Date: Fri, 18 Sep 2009 04:44:55 -0400
User-Agent: KMail/1.12.1 (Linux/2.6.31; KDE/4.3.1; i686; ; )
Message-Id: <200909180444.55837.>
Comment 1 Michael McLagan 2009-09-18 11:01:20 UTC
Created attachment 37032 [details]
Header showing invalid dates
Comment 2 Michael McLagan 2009-09-18 11:02:10 UTC
Created attachment 37033 [details]
Selected message showing invalid dates.
Comment 3 Thomas McGuire 2009-09-18 13:37:12 UTC
SVN commit 1025319 by tmcguire:

Add unit test for bug 207766, but it doesn't fail.

CCBUG: 207766


 M  +1 -0      testdateparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1025319
Comment 4 Thomas McGuire 2009-09-18 13:39:05 UTC
SVN commit 1025320 by tmcguire:

Another test for bug 207766, also passes.

CCBUG: 207766


 M  +8 -0      headertest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1025320
Comment 5 Thomas McGuire 2009-09-18 13:41:54 UTC
Works fine here, I tried a message with "Fri, 18 Sep 2009 04:44:55 -0400" as a date, and it showed correctly.

Also, the unit tests confirmed that it works.