Hi Alexander, No problem. I've submitted a patch for Zend_Gdata which fixes the problem with setting the query parameter. It's in SVN revision 5396. Please see the bug for more info: http://framework.zend.com/issues/browse/ZF-1560
This should be released shortly in the next RC of Zend Framework. Happy coding, -Ryan On Jun 18, 8:01 am, Alexander Trudeau <[EMAIL PROTECTED]> wrote: > Ryan, > > Thank you very much for this code. I just tested it out and it's > working perfectly :-D > > I really appreciate the effort you've put into helping me. Cheers! > > On Jun 14, 2:24 am, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote: > > > Hello Alexander, > > > Thanks very much for your understanding. > > > Based off the code listed, I'm guessing you're using the Zend > > Framework client library for Google data APIs (v 1.0RC2a)? > > > It appears that you've discovered an issue in the Zend_Gdata PHP > > client library rather than a problem in the Calendar data API. The > > problem exists in the Zend_Gdata_App_Util::formatTimestamp() function > > used by setStartMin() and setStartMax(). It is currently stripping > > the timezone offset you're passing to the method. > > > I've filed a bug against the Zend_Gdata component (and assigned it to > > myself):http://framework.zend.com/issues/browse/ZF-1560 > > > So, to workaround the issue with the client library, you can set the > > URL parameters directly via: > > $query->setParam('start-min', '2007-06-14T00:00:00-04:00'); > > $query->setParam('start-max', '2007-06-15T00:00:00-04:00'); > > > In your case, this would be: > > $query->setParam('start-min', $today.'T00:00:00-04:00'); > > $query->setParam('start-max', $tomorrow.'T00:00:00-04:00'); > > > I tried this out and it worked for me-- please let me know if it works > > well for you :) > > > Cheers, > > -Ryan > > > On Jun 13, 11:48 am, Alexander Trudeau <[EMAIL PROTECTED]> > > wrote: > > > > Thanks for the work-around, although I'm trying it in my code and it's > > > not working... > > > > $query->setStartmin($today.'T00:00:00-04:00'); > > > $query->setStartmax($tomorrow.'T00:00:00-04:00'); > > > > using those as my startmin and max values, it's still giving me the > > > events in the day before. Oh well, it's not the most important thing > > > to get fixed, but it's good to know that there's a bug report for it. > > > > Thanks again Ryan! > > > > On Jun 13, 2:33 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Hello Alexander, > > > > > Searching is currently being done based upon GMT rather than based > > > > upon the timezone of the calendar. There is a bug filed to fix that, > > > > and I have just updated that bug with this thread information to bring > > > > some more attention to it. > > > > > There's a workaround for now-- it involves specifying the time offset > > > > when doing the search. Take a look at the following query string as > > > > an example: > > > > >https://www.google.com/calendar/feeds/default/private/full?start-min=... > > > > > This works fine for me when I set my calendar up using Eastern time > > > > and add a bunch of events on the day boundaries. Note, my 'start-max' > > > > is the following date, because the start-max is exclusive, while the > > > > start-min is inclusive. > > > > > Cheers, > > > > -Ryan > > > > > On Jun 13, 9:26 am, Alexander Trudeau <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Okay, I just implemented this and I got it to work for the most part.. > > > > > I'm actually still having some troubles with Problem 2 but now, > > > > > instead of doing this for every event occurring past 8pm, it only will > > > > > show it if the event occurs past 8pm on the night before (so for > > > > > instance, if I had an appointment from 7-9pm yesterday, and I had my > > > > > calendar showing events that are either happening today or in the next > > > > > week, it would still show my appointment yesterday). > > > > > > Any thoughts? > > > > > > On Jun 13, 10:21 am, Alexander Trudeau <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > Thank you. I'll try this later today :-) > > > > > > > On Jun 12, 2:29 pm, "Jacob Eggers" <[EMAIL PROTECTED]> wrote: > > > > > > > > On 6/12/07, The Squall <[EMAIL PROTECTED]> wrote: > > > > > > > > > Ok here's my scenario: I need to show events occuring every day > > > > > > > > in > > > > > > > > order of their start time for the next seven days. There are > > > > > > > > both > > > > > > > > single-events and reoccurring-events in my calendar. I > > > > > > > > currently have > > > > > > > > my reoccurring events showing as multiple single events in the > > > > > > > > API. > > > > > > > > > Problem 1: > > > > > > > > I want to have the single-occurring events show between two > > > > > > > > occurrences of a reoccurring event. As of now, the API will > > > > > > > > display > > > > > > > > all of the reoccurrences of a reoccurring event before moving > > > > > > > > on to > > > > > > > > the non-reoccurring event. > > > > > > > > Go through the events and add the html you'd like to echo into an > > > > > > > array > > > > > > > add the dates into another array > > > > > > > array_push($html_arr, $event_html); > > > > > > > array_push($when_arr, $when); > > > > > > > > Then do a multi_arraysort > > > > > > > //sorts both arrays by when_arr values, then html_arr values > > > > > > > multi_arraysort($when_arr,$html_arr); > > > > > > > > And print out the $html_arr > > > > > > > foreach ($html_arr as $html) {...} > > > > > > > > > As of now, in order to hack my way around that, I am searching > > > > > > > > gcal > > > > > > > > multiple times, once for each day, using a while loop that > > > > > > > > changes the > > > > > > > > day to the next day each time it loops through. This is very > > > > > > > > slow and > > > > > > > > I'm sure there's GOT to be a better way around it. This also > > > > > > > > brings me > > > > > > > > to problem 2... > > > > > > > > > Problem 2: > > > > > > > > I am in EDT time (My computer, my calendar, and my server are > > > > > > > > all on > > > > > > > > the same time zone). That being said, the current GMT > > > > > > > > difference to > > > > > > > > all three computers is -04:00. When I do my workaround to > > > > > > > > problem 1, > > > > > > > > however, I end up getting two events when the event goes until > > > > > > > > anytime > > > > > > > > past 20:00 (08:00 PM). One of the events shows on the correct > > > > > > > > day, and > > > > > > > > the other one shows on the next day (although the day and time > > > > > > > > information is all the same). > > > > > > > > problem 2 will probably be solved when you don't do day by day > > > > > > > searches. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
