I´m trying to set the date/time using the ADB shell but the shell only returns the current time.
I´ve tried:
adb shell date -s YYYYMMDD.HHmmss
and unix time like:
adb shell date 1318349236
any ideas?
I´m trying to set the date/time using the ADB shell but the shell only returns the current time.
I´ve tried:
adb shell date -s YYYYMMDD.HHmmss
and unix time like:
adb shell date 1318349236
any ideas?
The correct format that has worked for me is
yyyyMMddHHmm.ss
Expanding on @uval's answer, you can use the following to update the date and time on the android device based on the time on your Windows machine:
Tested on a rooted Android 6.0 device and a Windows 10 PC.