TWRP: Move the valid current time up to trigger fix on more devices.
For example on my device, the LG V20 (US996), the default time
comes back as 2016 which doesn't trigger the fixup code.
The actual time I picked was pretty arbitrary, but close to
the current date, since we're checking if said date/time is reasonably
accurate without the fixup code.
Change-Id: I01db64777d7d0c5ce0710445cf88858d89656ac0
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index b7bcebe..f82de61 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -904,7 +904,7 @@
gettimeofday(&tv, NULL);
- if (tv.tv_sec > 1405209403) { // Anything older then 12 Jul 2014 23:56:43 GMT will do nicely thank you ;)
+ if (tv.tv_sec > 1517600000) { // Anything older then 2 Feb 2018 19:33:20 GMT will do nicely thank you ;)
LOGINFO("TWFunc::Fixup_Time: Date and time corrected: %s\n", TWFunc::Get_Current_Date().c_str());
fixed = true;