We are using Outlook Graph API to archive emails from certains mailbox.
When we retreive emails by Graph API, we always get them in an UTC time zone format even with a prefer header in the request. Any idea?
This is my sample code :
const response = await client
.api(`/me/mailFolders/${folderID}/messages?$top=20${filter}`)
.header('Prefer', 'outlook.timezone="Eastern Standard Time"')
.select('id, receivedDateTime, from, subject, body, hasAttachments')
.get();