Google.Apis.Calendar.v3 Time zone issue when getting events

15 views
Skip to first unread message

Ehsan Kayani

unread,
Jan 10, 2019, 11:13:12 PM1/10/19
to Google Calendar API

I am getting Events with below code:

       EventsResource.ListRequest req = service.Events.List(calresult[i].Id);
       DateTime minLimit = DateTime.Now.AddMonths(-1);
       DateTime maxLimit = DateTime.Now.AddMonths(3);
       req.TimeZone = googleapiTimezone; //Pacific/Honolulu
       req.TimeMin = minLimit;
       req.TimeMax = maxLimit;
       var events = req.Execute().Items;

The code is working find except it is not considering the Timezone parameter in any case it returns the Event DateTime info in the default event timezone.

What am i doing wrong here?



Thank you

Reply all
Reply to author
Forward
0 new messages