I am using python msgraph sdk to query calendar views. Below is my request:
params = {"start_date_time": "2024-05-15T00:00:00+08:00", "end_date_time": "2024-05-15T23:59:59+08:00"}
query_params = CVRBuilder.CalendarViewRequestBuilderGetQueryParameters(
**params
)
config.query_parameters = query_params
events = asyncio.run(client.users.by_user_id("myid").calendar.calendar_view.get(
config
))
However, the event.start.date_time for each event in the events changed when I run my code on my desktop in UTC-8 timezone, and a server in US East. The difference of the time is actually the time zone difference. I did not get a chance to print out the event.start.time_zone because when I update my code and restart my server, the issue was gone.
Is there anyone facing the same issue?