I work with visual studio 2008 , vb .net .
I want to create a recurring event which happens
StartTime: 1 Mar 2010 09:00am
Endtime: 1 Mar 2010 10:00 am ,
FREQ: weekly
INTERVAL: 1
UNTIL: 31 Mar 2010.
So the recurrence string is "
DTSTART:20100301T070000Z
DTEND:20100301T080000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20100331T070000Z
StartTime and EndTime are converted to utc with ToUniversalTime
function
Before the convertion the event that i want to create is in Europe/
Athens Timezone.
My calendar in google is also in Europe/Athens timezone
Google creates the below events
1 Mar 2010 09:00am - 10:00 am
8 Mar 2010 09:00am - 10:00 am
15 Mar 2010 09:00am - 10:00 am
22 Mar 2010 09:00am - 10:00 am
29 Mar 2010 10:00am - 11:00 am
The problem is the last event which happens on 29 Mar . StartTime is
10:00 am instead of 09:00 am and EndTime is 11:00 am instead of 10:00
am that in the last sunday of March Greece have daylight (DTS=1)
How can i fix that?? I suppose that something is missing in the
recurrence string.
It seems that i have to give info like above
DTSTART;TZID=GMT:20100301T070000Z
DTEND;TZID=GMT:20100301T080000Z
RRULE:FREQ=WEEKLY;UNTIL=20100331T070000Z;
BEGIN: VTIMEZONE
TZID:Europe/London
X-LIC-LOCATION:Europe/London
BEGIN: DAYLIGHT
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
TZNAME: BST
DTSTART:19700329T010000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
End : DAYLIGHT
BEGIN: STANDARD
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
TZNAME: GMT
DTSTART:19701025T020000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END: STANDARD
END: VTIMEZONE
The function ToUniversalTime in which GMT( + 00:00) converts??
There are a lot GMT( + 00:00) in google calendar settings.
Thanks.