Date difference in received time and date of message from imapx

Feb 18, 2014 at 2:15 AM
I am using the same code from your Vb.Net code repository to get the messages in inbox like

sFolder = iClient.Folders.Inbox
            _messages = Enumerable.ToList(Of Message)(Enumerable.OrderByDescending(Of Message, Nullable(Of DateTime))(sFolder.Search("ALL", -1, -1), Function(m As Message)
                                                                                                                                                         Return m.Date
                                                                                                                                                     End Function))
and I am iterating with _messages using

For Each m In _messages

Next

While accessing m.date it is returing some date not exactly displyed in inbox

why ??
Coordinator
Feb 19, 2014 at 6:36 AM
Hi sureshbarathan,

I think the problem lies in the time zones. They will be dropped parsing the date, which causes the time difference. I'll make an update to fix this.

Best regards,

Pavel