As you should have found by having a look at the API reference and PHP
samples for Zend framework, times should be set with RFC3339 compliance.
You 'll have to encode the timestamp to this format :
// this line set an event beginning now date("c", $timestamp) encode the
timestamp to the date/time string format expected by the Gdata library.
$starttime = date('c', time()));
If you want to do some calculations on the date (for example, setting the
end time to 2 hours later), use any of the Date/Time PHP functions or
directly modify the timestamp (as a software engineer, you should know that
in PHP this is a Unix timestamp : number of secondes since 01/01/1970) :
$start = time();
$end = $start + 60*60*2;
$starttime = date("c", $start);
$endtime = date("c", $end);
--
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