Use _mkgmtime to assure that there is no mismatch between local and UTC time during roundtrip Outlook->Adapter->Engine Update to VS 2017
authorThomas
Mon, 03 Dec 2018 16:43:09 +0100
branchUpdate to VS 2017
changeset 324ef317c83c07a
parent 323 367e67179704
child 325 db7a5f9cb673
Use _mkgmtime to assure that there is no mismatch between local and UTC time during roundtrip Outlook->Adapter->Engine
pEp_utility.cpp
     1.1 --- a/pEp_utility.cpp	Wed Nov 14 16:24:22 2018 +0100
     1.2 +++ b/pEp_utility.cpp	Mon Dec 03 16:43:09 2018 +0100
     1.3 @@ -334,9 +334,9 @@
     1.4              msg2->LongMsgFormatted = bstr(msg->longmsg_formatted);
     1.5              msg2->Attachments = array_from_C<Blob, bloblist_t>(msg->attachments);
     1.6              if (msg->sent)
     1.7 -                msg2->Sent = mktime(msg->sent);
     1.8 +                msg2->Sent = _mkgmtime(msg->sent);
     1.9              if (msg->recv)
    1.10 -                msg2->Recv = mktime(msg->recv);
    1.11 +                msg2->Recv = _mkgmtime(msg->recv);
    1.12              msg2->From = identity_s(msg->from);
    1.13              msg2->To = array_from_C<pEpIdentity, identity_list>(msg->to);
    1.14              msg2->RecvBy = identity_s(msg->recv_by);