Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
475 stars 168 forks source link

[Time Sync Issue] #367

Closed tariqgitspace closed 11 months ago

tariqgitspace commented 11 months ago

Describe the bug Latest/top email is not time synchronized with other messages in the email chain. When doing email to Html transformation, time in Top/Latest email is processed as per timezone of the machine. However, time in other messages in the email chain is processed as plain string. This leads to time sync issue when transformation is done in a differnet time zone

To Reproduce Steps to reproduce the behavior: Take a sample email chain Setting your machine to a differnet timezone, perform email to Html transformation.

Expected behavior Time should be synchronized.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): OS - Windows 11 Browser - Edge, Chrome, etc Version- All

Smartphone (please complete the following information): Device: N/A OS - N/A Browser- N/A Version - N/A

Additional context Add any other context about the problem here.

Sicos1977 commented 11 months ago

I don't understand the problem. MSGReader just gives you access to the e-mail and just returns the date/time values. It does not recalculate it.

tariqgitspace commented 11 months ago

@Sicos1977 Please see example below and notice timestamp between latest and other messages. Thanks

From Email File: image

Html generated from Above:: image

Sicos1977 commented 11 months ago

That probably has to do with that the e-mail is sent across different time zones. When converting the e-mail to HTML it uses the time-zone that the computer is using where the code is run.

I need one of those e-mails to see if there is something in the e-mail that I can use to calculate the correct date.

Please ZIP the MSG file before sending it to sicos2002@hotmail.com

Sicos1977 commented 11 months ago

Where are u located... the USA? ... so is the timestamp in the outlook screen the current time?

Sicos1977 commented 11 months ago

I don't see any problems with the MSG file you sent me.

Outlook and MSGViewer both show the same date and time

image

Sicos1977 commented 11 months ago

No reply ... closed