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
-~----------~----~----~----~------~----~------~--~---

Reply via email to