From 3d30ed65f9e226b7b183b23ce5dba435ec491f0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jan 2025 18:28:28 +0300 Subject: DBEVENTINFO::timestamp to become 64-bit integer --- plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp') diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp index e26522981f..1f27050971 100644 --- a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp +++ b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp @@ -401,7 +401,7 @@ uint8_t CExImContactXML::ExportEvents() TiXmlElement *xmlEvent = _xmlDoc.NewElement("evt"); if (xmlEvent) { xmlEvent->SetAttribute("type", dbei.eventType); - xmlEvent->SetAttribute("time", (int)dbei.timestamp); + xmlEvent->SetAttribute("time", (int)dbei.getUnixtime()); xmlEvent->SetAttribute("flag", (int)dbei.flags); TiXmlText *xmlText = _xmlDoc.NewText(pBase64Data); @@ -914,8 +914,8 @@ int CExImContactXML::ImportEvent(LPCSTR pszModule, const TiXmlElement *xmlEvent) // timestamp must be valid DBEVENTINFO dbei = {}; - dbei.timestamp = xmlEvent->IntAttribute("time"); - if (dbei.timestamp == 0) + dbei.iTimestamp = xmlEvent->IntAttribute("time"); + if (dbei.iTimestamp == 0) return ERROR_INVALID_TIMESTAMP; LPCSTR tmp = xmlEvent->GetText(); -- cgit v1.2.3