From 027d9d6f362142fa0e37c6b850e0ee7619e5d615 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 26 Mar 2012 16:23:02 +0000 Subject: [PATCH] Monotone-Parent: a57c1371e929b419ef93b5ef8ac792715c9203bf Monotone-Revision: 137ce0e5b4a2b4afe3b810e582cbe613caf2bb20 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-26T16:23:02 --- SOPE/NGCards/ChangeLog | 6 ++++++ SOPE/NGCards/iCalDateTime.m | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index 30f76ebbe..db2b2b1b0 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,9 @@ +2012-03-26 Wolfgang Sourdeau + + * iCalDateTime.m (_setDateTime:forAllDayEntity:): set or unset the + "VALUE" parameter to the date instance, depending on its the + all-dayness. + 2012-03-11 Wolfgang Sourdeau * iCalEvent.m (-hasDuration): returns NO when the value is present diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index 251c46d0a..81d0a88aa 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -137,6 +137,11 @@ else timeString = @""; + if (forAllDayEntity) + [self setValue: 0 ofAttribute: @"VALUE" to: @"DATE"]; + else + [self removeValue: @"DATE" fromAttribute: @"VALUE"]; + [self setSingleValue: timeString forKey: @""]; }