How to know all-day event or not?

69 views
Skip to first unread message

Dice-K

unread,
Dec 1, 2011, 12:32:02 AM12/1/11
to Google APIs Client Library for Objective-C
Hello,

GTLCalendarEvent object has start and end properties, but it does not
has all-day event flag.

First, I thought if event.start.date is not nil, it is all-day event.
However, GTLCalendarEventDateTime object
uninitialized GTLDateTime object in its date property as shown below.

date: {2147483647-2147483647-2147483647} dateTime:
{2011-12-16T08:00:00+09:00} timeZone:(null)

What's the best means to know that an event is an all-day event or
not?

Could you consider to set date property nil if the event is not a all-
day event?

Cheers,

Dice-K

Greg Robbins

unread,
Dec 1, 2011, 2:34:56 AM12/1/11
to google-api-obj...@googlegroups.com
This is a bug in the library; the date property should return nil. We'll fix it soon. Thank you for pointing out the problem.

Greg Robbins

unread,
Dec 1, 2011, 11:06:30 AM12/1/11
to google-api-obj...@googlegroups.com
The library has been updated to return nil for the GTLDateTime object when the date-time string is not present in the requested JSON field.


Dice-K

unread,
Dec 2, 2011, 2:18:27 AM12/2/11
to Google APIs Client Library for Objective-C
Greg,

Thank you for fixing a problem.

On 12月2日, 午前1:06, Greg Robbins <grobb...@google.com> wrote:
> The library has been updated to return nil for the GTLDateTime object when
> the date-time string is not present in the requested JSON field.
>

> http://code.google.com/p/google-api-objectivec-client/source/detail?r...

Reply all
Reply to author
Forward
0 new messages