So, I'm still having problems with this timezone. Here's the original code I
had... tried to modify it a little based on the information you gave me...
but didn't really work. Neither did the Content line work.
try {
$event = $gcal->newEventEntry();
$event->title = $gcal->newTitle($title);
$when = $gcal->newWhen();
$when->startTime = $start;
$when->endTime = $end;
$event->when = array($when);
$gcal->insertEvent($event);
} catch (Zend_Gdata_App_Exception $e) {
echo "Error: " . $e->getResponse();
}
echo 'Event successfully added!';
}
On Thu, Jul 14, 2011 at 12:47 PM, Pierre Pasteau <
[email protected]> wrote:
> Hi,
>
>
> First, in order to have valuable help, you should include here relevant
> parts of your PHP script.
>
> Yes, the hour issue is linked to the timezone. How do you encode the
> begin/end times ? (again, your code is needed here !). It should be encoded
> as a RFC3339 date string. Either you encode it yourself, or you may use the
> PHP date('c', $xxxx) function. Please note that your host server must be
> correctly configured with timezone and daylight-saving-time.
>
> The Description field can be read/written with Content property ($service
> is your Zend_Gdata_Calendar object) :
> $event->content = $service->newContent("blablabla");
>
> To include carriage returns, use "\n" in the string (that's not specific to
> Google...)
>
>
> As any software engineer would do, having a look at the API reference often
> provides immediate answers :
> - sample code for date/time event creation :
> http://code.google.com/intl/fr/apis/calendar/data/1.0/developers_guide_php.html#CreatingSingle
> - description field :
> http://framework.zend.com/manual/en/zend.gdata.calendar.html (near the
> page half, "creating events" topic)
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>
--
*Amarprit Malhotra*
Gesellschafter der JMBM GmbH
Indigo Restaurant - Frankfurt - www.in-indigo.de
Delhi Palace Restaurant - Göttingen - www.delhipalace.de
Tel. 069 26488878
Fax 069 26488859
--
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://code.google.com/apis/calendar/community/forum.html