(EAS) Fix handling of missing date

Fixes #4720
This commit is contained in:
Francis Lachapelle
2019-04-05 08:39:20 -04:00
parent 37efcea5e5
commit ab87e72b4e

View File

@@ -867,6 +867,8 @@ struct GlobalObjectId {
value = [self date];
if (value)
[s appendFormat: @"<DateReceived xmlns=\"Email:\">%@</DateReceived>", [value activeSyncRepresentationInContext: context]];
else
[s appendFormat: @"<DateReceived xmlns=\"Email:\">%@</DateReceived>", [[NSDate date] activeSyncRepresentationInContext: context]];
// DisplayTo
[s appendFormat: @"<DisplayTo xmlns=\"Email:\">%@</DisplayTo>", [[context activeUser] login]];