Bug 115672 - KMail sends "Date:" wrong header after daylight saving time has ended
Summary: KMail sends "Date:" wrong header after daylight saving time has ended
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.8.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 14:33 UTC by Heiko Hund
Modified: 2009-08-30 19:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Hund 2005-11-04 14:33:11 UTC
Version:           1.8.2 (using KDE 3.4.2, Debian Package 4:3.4.2-4 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.12-1-k7

Last weekend daylight saving time ended in Germany. A since then running KMail/Kontact continued to send the Date header CEST style:

Date: Fri, 4 Nov 2005 09:19:20 +0200

The system clock got updated correctly via NTP. Kicker was right when I came to office Monday morning. After a restart of Kontact KMail send the correct Date header:

Date: Fri, 4 Nov 2005 08:19:53 +0100

Note that the display of the date did not suffer from this, since +0200 got translated to the +0100 in the message list. Thus I didn't notice. A mutt user did, though. =)
Comment 1 Thiago Macieira 2005-11-04 15:41:18 UTC
I don't think I saw that when we entered DST three weeks ago.

Let me check my sent-mail folder...
This message was sent before DST:
Date: Sat, 15 Oct 2005 18:42:34 -0300

This message was sent after DST:
Date: Sun, 16 Oct 2005 00:31:31 -0300

So, yes, I can confirm the bug (I was running r470926 then)
Comment 2 Martin Koller 2006-01-02 13:01:00 UTC
Checking with 3.5, I can not confirm this bug

A mail generated on 29.10.2005 (in CEST) has
Date: Sat, 29 Oct 2005 15:00:31 +0200

on 1.11.2005 (CET) has
Date: Tue, 1 Nov 2005 11:45:22 +0100

kmail said in these days it was User-Agent: KMail/1.8.92
Comment 3 Heiko Hund 2006-01-02 13:06:25 UTC
Can you confirm that no restart of KMail happened after the change to CET? After a restart my KMail was right again.
Comment 4 Martin Koller 2006-01-02 14:08:52 UTC
Ah, I see. Sorry, missed that point. I simply checked my sent mail folder today.

OK, I now ran a test with current 3.5 where I changed my system time to 30.10.2005 1:59 CEST, generated a mail (it has +0200) then without restarting kmail changed time to current time and generated another mail (still +0200).
After a new start of kmail, a newly generated mail has +0100

So, I confirm this bug with current 3.5
Comment 5 Kees Bakker 2007-11-05 15:29:26 UTC
The bug is still present in 3.5.5 (I'm using debian kmail 3.5.5.dfsg.1-6). I keep kmail running all the time. Since the last daylight-saving switch I was sending out emails with the wrong Date header. Only when I restarted kmail this morning the Date header is correct again.

Here is the relevant portion of the grep of sent emails:
Mail/sent-mail/cur > grep '^Date:' *|tail -10
1194019378.11287.hSSlK:2,S:Date: Fri, 2 Nov 2007 18:02:57 +0200
1194252779.11287.JfyIh:2,S:Date: Mon, 5 Nov 2007 10:52:59 +0200
1194253074.11287.XwO8l:2,S:Date: Mon, 5 Nov 2007 10:57:53 +0200
1194253697.11287.LW0Ow:2,S:Date: Mon, 5 Nov 2007 11:08:16 +0200
1194254035.11287.wVd30:2,S:Date: Mon, 5 Nov 2007 11:13:55 +0200
1194256277.11287.ap9Oo:2,S:Date: Mon, 5 Nov 2007 11:51:16 +0200
1194259217.11287.WZmH6:2,S:Date: Mon, 5 Nov 2007 12:40:16 +0200
1194261234.27995.647ai:2,S:Date: Mon, 5 Nov 2007 12:13:53 +0100
1194261290.27995.R8BIH:2,S:Date: Mon, 5 Nov 2007 12:14:49 +0100
1194270928.27995.jdLz3:2,S:Date: Mon, 5 Nov 2007 14:55:27 +0100

Notice the change around 12:13.
Comment 6 Martin Koller 2009-08-30 18:34:35 UTC
The bug is still present in KDE 4.3.0
Comment 7 Martin Koller 2009-08-30 19:05:28 UTC
SVN commit 1017439 by mkoller:

BUG: 115672

do not cache the time offset from UTC as the DST/non-DST day change
would not be detected


 M  +4 -1      datetime.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1017439