summaryrefslogtreecommitdiffstats
path: root/mtp/MtpUtils.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2014-09-07 00:28:46 +0200
committerbigbiff bigbiff <bigbiff@teamw.in>2014-09-07 00:34:40 +0200
commit26c47962ef585732d876963559b520cc14c9536f (patch)
tree4946793d39858153a3aa7d3f4809ec51fb06d87c /mtp/MtpUtils.cpp
parentupdate exfat from current head (diff)
downloadandroid_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar.gz
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar.bz2
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar.lz
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar.xz
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.tar.zst
android_bootable_recovery-26c47962ef585732d876963559b520cc14c9536f.zip
Diffstat (limited to 'mtp/MtpUtils.cpp')
-rwxr-xr-xmtp/MtpUtils.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/mtp/MtpUtils.cpp b/mtp/MtpUtils.cpp
index 5fa32f271..5be86389a 100755
--- a/mtp/MtpUtils.cpp
+++ b/mtp/MtpUtils.cpp
@@ -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;
}