(fix) better handle bogus DTStart values over EAS
parent
93b66c0f69
commit
95680b33a1
|
@ -35,6 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSCharacterSet.h>
|
||||
#import <Foundation/NSTimeZone.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGCards/iCalCalendar.h>
|
||||
#import <NGCards/iCalDateTime.h>
|
||||
|
@ -970,7 +971,7 @@ struct GlobalObjectId {
|
|||
if ([event startDate])
|
||||
[s appendFormat: @"<StartTime xmlns=\"Email:\">%@</StartTime>", [[event startDate] activeSyncRepresentationInContext: context]];
|
||||
|
||||
if ([event timeStampAsDate])
|
||||
if ([event timeStampAsDate] && [[event timeStampAsDate] dayOfMonth] > 0 && [[event timeStampAsDate] monthOfYear] > 0)
|
||||
[s appendFormat: @"<DTStamp xmlns=\"Email:\">%@</DTStamp>", [[event timeStampAsDate] activeSyncRepresentationInContext: context]];
|
||||
else if ([event created])
|
||||
[s appendFormat: @"<DTStamp xmlns=\"Email:\">%@</DTStamp>", [[event created] activeSyncRepresentationInContext: context]];
|
||||
|
|
1
NEWS
1
NEWS
|
@ -21,6 +21,7 @@ Bug fixes
|
|||
- [eas] strip '<>' from bodyId and when forwarding mails
|
||||
- [eas] fix search on for Outlook application (#4605 and #4607)
|
||||
- [eas] improve search operations and results fetching
|
||||
- [eas] better handle bogus DTStart values
|
||||
|
||||
4.0.4 (2018-10-23)
|
||||
------------------
|
||||
|
|
Loading…
Reference in New Issue