We convert emails to MHT files using the following code:
using (MailMessage msg = MailMessage.Load(emailFilePath, messageFormat))
{
using (MemoryStream mhtStream = new MemoryStream())
{
msg.Save(mhtStream, MessageFormat.Mht);
...
}
}
The sent date is rendered using the local system time zone. Our users would like to be able to configure the time zone that is used for the sent date (and any other dates that may be displayed in the MHT).
Is it possible to change the time zone that is used?
Thanks.
using (MailMessage msg = MailMessage.Load(emailFilePath, messageFormat))
{
using (MemoryStream mhtStream = new MemoryStream())
{
msg.Save(mhtStream, MessageFormat.Mht);
...
}
}
The sent date is rendered using the local system time zone. Our users would like to be able to configure the time zone that is used for the sent date (and any other dates that may be displayed in the MHT).
Is it possible to change the time zone that is used?
Thanks.