Share via

message: createReply time zone set to UTC time

Jayrag Pareek 1 Reputation point
2021-11-18T04:57:15.207+00:00

In our .Net MVC application, we are using Microsoft Graph to retrieve mail messages from a mailbox and then send a reply. For creating the reply, we use the

message.CreateReply()

The sent datetime is always in the utc timezone in the mail body when we create the reply. For example, in the mail body it says:

From: Melissa van Dijk
Sent: Friday, November 12, 2021 9:51:49 AM (wrong timestamp)
To: Melissa van Dijk
Subject: Re:Meet for lunch?

When replying via Outlook webmail, we get a correct timestamp.

Is this a bug or do we have to correct this timestamp ourselves? Or do we need to pass the timezone with the REST call somehow?

Microsoft Security | Microsoft Graph

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.