From 9d089fb27e3cdc2e9b0e4048a3525276be278255 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Aug 2018 18:53:18 +0300 Subject: no need to deduct a day from SYSTEMTIME --- plugins/Import/src/textjson.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/Import/src') 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) -- cgit v1.2.3