mktime_tz is blocking, don't use it

Change-Id: I0a66a69b68d975389302ae4361c9c106eb722538
This commit is contained in:
bigbiff bigbiff
2014-09-06 18:28:46 -04:00
parent 2e33c5ee0b
commit 26c47962ef
+8 -3
View File
@@ -21,6 +21,7 @@
#include <cutils/tztime.h>
#include "MtpUtils.h"
#include "MtpDebug.h"
/*
@@ -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)
outSeconds = mktime(&tm);
else
//if (useUTC) {
outSeconds = mktime(&tm);
//}
/* mktime_tz is blocking :P
else {
outSeconds = mktime_tz(&tm, tm.tm_zone);
}
*/
return true;
}