From c3162b5d8a027373514713a23293a3a8d43bff87 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sat, 21 Jan 2023 14:36:38 +0100 Subject: [PATCH] MailMessage: Fix date in header of forwarded mails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As investigated by madmax in #18230; Date() returns a time_t since 2015. Thanks! Change-Id: Ic35129ad60f6cadc09917c05e86f726de3061dcb Reviewed-on: https://review.haiku-os.org/c/haiku/+/6010 Reviewed-by: Axel Dörfler Tested-by: Commit checker robot --- src/kits/mail/MailMessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/mail/MailMessage.cpp b/src/kits/mail/MailMessage.cpp index a43a84e2e4..cbcff0c1ba 100644 --- a/src/kits/mail/MailMessage.cpp +++ b/src/kits/mail/MailMessage.cpp @@ -185,7 +185,7 @@ BEmailMessage::ForwardMessage(bool accountFromMail, bool includeAttachments) header << "CC: " << CC() << '\n'; } header << "Subject: " << Subject() << '\n'; - header << "Date: " << Date() << "\n\n"; + header << "Date: " << HeaderField("Date") << "\n\n"; if (fTextBody != NULL) header << fTextBody->Text() << '\n'; BEmailMessage *message = new BEmailMessage();