From c6b976a83077b94b043d38b4e1bb7c16ccbc1898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20J=2E=20Hern=C3=A1ndez=20Blasco?= Date: Fri, 16 Jan 2015 00:06:11 +0100 Subject: [PATCH] oc-mail: Remove unnecessary time shift in date for new mails The MIME type can store the date in UTC and the clients are responsible on showing correctly to the client as it does. --- OpenChange/MAPIStoreMailVolatileMessage.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/OpenChange/MAPIStoreMailVolatileMessage.m b/OpenChange/MAPIStoreMailVolatileMessage.m index 55d62309e..6c340a721 100644 --- a/OpenChange/MAPIStoreMailVolatileMessage.m +++ b/OpenChange/MAPIStoreMailVolatileMessage.m @@ -29,7 +29,6 @@ #import #import #import -#import #import #import #import @@ -673,8 +672,6 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers, date = [mailProperties objectForKey: MAPIPropertyKey (PR_CLIENT_SUBMIT_TIME)]; if (date) { - date = [date addYear: 0 month: 0 day: 0 - hour: 0 minute: 0 second: [[date timeZone] secondsFromGMT]]; [headers addObject: [date rfc822DateString] forKey: @"date"]; } [headers addObject: @"1.0" forKey: @"MIME-Version"];