You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented as you had suggested and it is working as expected. Thanks for the same.
Now, I have faced one issue when I tried to get recurring events it threw me the below error. This request requires a time window specified by the query string parameters StartDateTime and EndDateTime.
Please check the code snippet for more clarification.
@bhoomesh-spe - can you do a quick test without the paged() and see if it works as expected?
This looks like we are stripping those params when we create the paged collection.
juliemturner
changed the title
How to get event timezone same as current user timezone instead of UTC
Get recurring events with paging throws an error that query string parameters StartDateTime and EndDateTime are required.
Sep 23, 2024
What version of PnPjs library you are using
3.x
Minor Version Number
3.15.0
Target environment
SharePoint Framework
Additional environment details
SharePoint Online, SPFx React
Question/Request
Hello Everyone,
I have implemented the below code to get the current user outlook event using PnP Graph API in the SPFx React project.
Currently I got the current logged in user's outlook event as expected.
But the event start time and end time is in the UTC time zone. I will need the same in the current user local time zone.
I have checked and found that I need to add something like the below in my PnP Graph API call to get the current user events from Outlook.
"Prefer":
outlook.timezone="Pacific Standard Time"
How can I pass the Prefer to my PnP Graph API call?
Can anyone help with the same?
Thanks
The text was updated successfully, but these errors were encountered: