cancel
Showing results for 
Search instead for 
Did you mean: 

icalendar and timezone

darthvader
Champ in-the-making
Champ in-the-making
Hi,

I've successfully managed to show up the Share's calendar in my pim software (korganizer) using the "ical feed" link. But the start and end date are shifted by one hour. I think this is a time zone issue, since I'm located in Germany (aka GMT+1).
The icalendar feed produced by Share looks like this:
BEGIN:VCALENDAR
PRODID:-//Alfresco Software//Calendar 1.0//EN
VERSION:2.0
BEGIN:VEVENT
UID:c33df3a6-471e-48e7-bbef-5078578b946d
DTSTART:20090225T170000Z
DTEND:20090225T190000Z
SUMMARY:Testevent
DTSTAMP:20090129T183139Z
DESCRIPTION:
END:VEVENT
END:VCALENDAR
According to the ical spec http://tools.ietf.org/html/rfc2445, the tailing "Z" in DTSTART and DTEND indicates UTC. So Alfresco Share obviously operates in UTC.
The system's timezone is set to "Europe/Berlin". Inside the JVM java.util.TimeZone.getDefault() also returns "Europe/Berlin". Seems like Share does not work with timezones.
How can this be changed? Any hints?

Regards,
Stefan
8 REPLIES 8

rays
Confirmed Champ
Confirmed Champ
Similar issue but our times are offset by 2 hours, even though we are in the same time zone as you, in principle. Our time zone iS Europe/Zurich.

BEGIN:VCALENDAR
PRODID:-//Alfresco Software//Calendar 1.0//EN
VERSION:2.0
BEGIN:VEVENT
UID:97ba4a7c-cd21-46b6-be24-3bba8ea5714a
DTSTART:20090710T090000Z
DTEND:20090710T170000Z
SUMMARY:Registration Task Force
DTSTAMP:20090708T093537Z
DESCRIPTION:Dear All\,nnThis is just a note
END:VEVENT
END:VCALENDAR

I've subscribed from iCal, Zimbra, Thunderbird and all are displaying the event as 11:00 to 19:00 instead of 09:00 to 17:00

Any help with finding the fix would be most welcome as it prevents us from rolling out Share with calendar for now.

Thanks

Ray

mikeh
Star Contributor
Star Contributor
Which version are you seeing this on? I seem to recall this being fixed sometime in the v3.2 timline…

Thanks,
Mike

darthvader
Champ in-the-making
Champ in-the-making
It's on 3.0 - didn't yet upgrade to 3.2.

Regards,
Stefan

rays
Confirmed Champ
Confirmed Champ
Which version are you seeing this on? I seem to recall this being fixed sometime in the v3.2 timline…

Thanks,
Mike

Thank you for the very quick response.

Sorry, I should have mentioned that we are working on the newly released Alfresco Community 3.2 - v3.2.0 (2039) with user.timezone = Europe/Zurich

Ray

darthvader
Champ in-the-making
Champ in-the-making
So it's also in 3.2?

Regards,
Stefan

rays
Confirmed Champ
Confirmed Champ
Exactly.

mikeh
Star Contributor
Star Contributor
In that case, please could you raise the bug with a reproducible test case (client, server locale, etc.) in JIRA.

Thanks,
Mike

rays
Confirmed Champ
Confirmed Champ
Done. ALFCOM-3191