From 32576eaca58fa08822ed6d5c7c5850611bb97404 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 19 Oct 2009 15:24:08 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 9a1a3fa3d7bc831a4d4d5e359f903fc187c31b04 Monotone-Revision: 51ad6c4e5c077a6e4cfd46e05d3d05822fb7803d Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-10-19T15:24:08 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/iCalDateTime.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index 917e5488b..a3e625cee 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -72,7 +72,11 @@ newTZId = nil; [self setValue: 0 ofAttribute: @"tzid" to: newTZId]; - [self setDateTime: dateTime]; + + if ([self isAllDay]) + [self setDate: dateTime]; + else + [self setDateTime: dateTime]; } - (iCalTimeZone *) timeZone