Loading mtp/MtpUtils.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <cutils/tztime.h> #include "MtpUtils.h" #include "MtpDebug.h" /* Loading Loading @@ -58,10 +59,14 @@ bool parseDateTime(const char* dateTime, time_t& outSeconds) { tm.tm_year = year - 1900; tm.tm_wday = 0; tm.tm_isdst = -1; if (useUTC) //if (useUTC) { outSeconds = mktime(&tm); else //} /* mktime_tz is blocking :P else { outSeconds = mktime_tz(&tm, tm.tm_zone); } */ return true; } Loading Loading
mtp/MtpUtils.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ #include <cutils/tztime.h> #include "MtpUtils.h" #include "MtpDebug.h" /* Loading Loading @@ -58,10 +59,14 @@ bool parseDateTime(const char* dateTime, time_t& outSeconds) { tm.tm_year = year - 1900; tm.tm_wday = 0; tm.tm_isdst = -1; if (useUTC) //if (useUTC) { outSeconds = mktime(&tm); else //} /* mktime_tz is blocking :P else { outSeconds = mktime_tz(&tm, tm.tm_zone); } */ return true; } Loading