summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Import/src/textjson.cpp2
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Import/src/textjson.cpp b/plugins/Import/src/textjson.cpp
index a0e168593b..0b7a0616a3 100644
--- a/plugins/Import/src/textjson.cpp
+++ b/plugins/Import/src/textjson.cpp
@@ -118,7 +118,7 @@ public:
if (res == 6) {
st.tm_mon--;
st.tm_year -= 1900;
- time_t tm = mktime(&st);
+ time_t tm = _mkgmtime(&st);
if (tm != -1)
dbei->timestamp = tm;
}
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 081ad6e86a..01b9639e10 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -812,7 +812,7 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath
JSONNode pRoot;
pRoot.push_back(JSONNode("type", dbei.eventType));
- TimeZone_PrintTimeStamp(0, dbei.timestamp, L"I", szTemp, _countof(szTemp), 0);
+ TimeZone_PrintTimeStamp(UTC_TIME_HANDLE, dbei.timestamp, L"I", szTemp, _countof(szTemp), 0);
pRoot.push_back(JSONNode("isotime", T2Utf(szTemp).get()));
std::string flags;