summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-17 18:53:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-17 18:53:18 +0300
commit9d089fb27e3cdc2e9b0e4048a3525276be278255 (patch)
tree1670e31fa0c9a03bc27a79c9308d5d68a1842a6e /plugins/Import/src
parentd04b715a5d999e4744b828083aa5905e04dc9299 (diff)
no need to deduct a day from SYSTEMTIME
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/textjson.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/Import/src/textjson.cpp b/plugins/Import/src/textjson.cpp
index 79ec9e6f99..a0e168593b 100644
--- a/plugins/Import/src/textjson.cpp
+++ b/plugins/Import/src/textjson.cpp
@@ -104,7 +104,6 @@ public:
int res = sscanf(szTime.c_str(), "%4d%c%2d%c%2d %2d:%2d:%2d", &st.tm_year, &c, &st.tm_mon, &c, &st.tm_mday, &st.tm_hour, &st.tm_min, &st.tm_sec);
if (res == 8) {
st.tm_mon--;
- st.tm_mday--;
st.tm_year -= 1900;
time_t tm = mktime(&st);
if (tm != -1)
@@ -118,7 +117,6 @@ public:
int res = sscanf(szTime.c_str(), "%4d-%2d-%2dT%2d:%2d:%2dZ", &st.tm_year, &st.tm_mon, &st.tm_mday, &st.tm_hour, &st.tm_min, &st.tm_sec);
if (res == 6) {
st.tm_mon--;
- st.tm_mday--;
st.tm_year -= 1900;
time_t tm = mktime(&st);
if (tm != -1)