Abhinav,

It's not clear why your code is failing? How is it failing exactly?
Are you trying to create an event, or update an event?

I just extracted this from the Zend demo for creating a web event. It
works for me with either startDate = endDate or endDate = startDate +
1 for creating an all day event.

  $gc = new Zend_Gdata_Calendar($client);
  $newEntry = $gc->newEventEntry();
  $newEntry->title = $gc->newTitle(trim($title));

  $when = $gc->newWhen();
  $when->startTime = $startDate;
  $when->endTime = $endDate;
  $newEntry->when = array($when);
  $createdEntry = $gc->insertEvent($newEntry);

Ray

On Tue, Nov 18, 2008 at 11:30 AM, Abhinav Asthana <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have been trying to create all-day events through the Zend Framwork
> GData library. It says in the documentation that I need to remove the
> starting time and the ending time of the event. Here is the code I am
> using but it doesn't seem to be working.
>
> $gCalDate = $kd->toString('YYYY-MM-dd');
> $when = $service->newWhen();
> $when->startTime = "$gCalDate";
> $when->endTime = "$gCalDate";
> $event->when = array($when);
>
> Please help me out!
> Thanks,
> Abhinav
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to