well, the module show a wong date, one day after the real event in google calender!

Comments

Se7enLC’s picture

Hey, thanks for reporting the bug. Couple questions to help track it down:

- What are the steps to reproduce this?
- Is it an all-day event, or does it have a start end end time?
- Does the event span multiple days?
- Is it a recurring/repeating event?
- What time zone is the calendar and what time zone is your webserver in?
- Is it all events, or just a single one?

If the calendar you are using isn't too private, can you post a link so I can try to reproduct it? Thanks

ferfer’s picture

thanks for your ansers.

- the list dont start in today, but on next monday
- yes i have some all-day events but in other have the some problem
- some one have multiple days and they are wrong too
- not a recurring/repeating event
- the time zone is the same Europe/Lisbon
- its for all the events

I have some more problems with tamplate but...

well, i was start now the site for my school, but you can see it in www.colegiocalvao.org, if you go to menu in Plano de Actividades you can see the google agenda. the link id is admin@colegiocalvao.org

ferfer’s picture

one more thing
When i debug the module it record every time the same time zone EUROPE/PARIS, even if i change it

Se7enLC’s picture

Just took a look at it.

It looks like the event that has a specific time (Reunião: 6D 9D 17 December, 2008 4:00pm) is correct, but the ones that are all day are all 1 day off...

Can you send me the google XML link or calendar ID for the calendar?

I'm going to try to set my test page up with that timezone to see what it does.

ferfer’s picture

Se7enLC’s picture

I think I fixed the problem.

Check out the latest version (1.12) of gcal_events.module under browse CVS and let me know if that fixes it

ferfer’s picture

thanks

ferfer’s picture

excuse one more time, but why the block dont show any thing in anonymous user ? Is that a bug or i must set anything to show it?

ferfer’s picture

Status: Active » Closed (fixed)
mattmackay’s picture

Version: 6.x-1.x-dev » 6.x-1.3
Status: Closed (fixed) » Active

I've been experiencing this even in the latest version (v1.3) of the module.

It appears to be down to this line of code:-

if ($allday) {
$unixdate += 86400;
}

If your timezone settings are correct, then this sets all of the all day events OUT by one day into the future.

I commented out these lines and cured my problem.

do we still need this code?

Se7enLC’s picture

Yes and no. That line was used to "hack" all day events to show up on the correct day. As it turns out, when timezones were added, some timezones ended up pushing the all-day events to one day LATER.

In the dev version, it was hacked in a slightly more elegant way. All-Day events were made to include the fake time "11:59pm" to make sure that they would show up on the correct day. Try using the dev release and see if that fixes your problem. I should really make a new official release once I get some more testing done.

Se7enLC’s picture

Status: Active » Closed (fixed)

that section of code is gone now, I believe this is fixed, reopen if that's not the case.