Is there a way to set that correct date and time in twrp thanks for the info
Sent from my SGH-T999 using xda premium
Sent from my SGH-T999 using xda premium
Using TWRP 3.0.2.0 unofficial for galaxy S5 SM-G901f and this works.Thanks.In twrp, open a terminal window. From command line set date like so:
date -s "YYYY-MM-DD HH:MM:SS"
exit the terminal and resume business.
#!/bin/bash
adb devices
UT=$(date -u '+%Y.%m.%d-%H:%M:%S')
adb shell date -us $UT
Using TWRP 3.0.2.0 unofficial for galaxy S5 SM-G901f and this works.Thanks.
I get an error like "could not find tzdata..." with S5 G900F and TWRP 2.8.7.0 - 3.1.0.0.In twrp, open a terminal window. From command line set date like so:
date -s "YYYY-MM-DD HH:MM:SS"
exit the terminal and resume business.
It seems that to save space the tzdata file is omitted from TWRP. It's not really a problem. Every build of TWRP that I have worked with thinks that it's in U.S. Central Standard Time (CST). So, if you want the TWRP system time to accurately represent the real current time you can either convert your local time to CST and then enter it, or you can enter the UTC time by changing "-s" to "-us".I get an error like "could not find tzdata..." with S5 G900F and TWRP 2.8.7.0 - 3.1.0.0.
Thanks, I'm in Europe though with CET/Berlin... The problem was that I've installed a ported Rom with BTU CSC, but I'd need DBT. After setting the time manually in time/date settings, twrp got it after a while... The last time I had this issue was with a S4 Mini and cm 11. The workaround there was to delete the file "time_daemon", but this time this had no effect.It seems that to save space the tzdata file is omitted from TWRP. It's not really a problem. Every build of TWRP that I have worked with thinks that it's in U.S. Central Standard Time (CST). So, if you want the TWRP system time to accurately represent the real current time you can either convert your local time to CST and then enter it, or you can enter the UTC time by changing "-s" to "-us".
I'm unfamiliar with running bash scripts via adb. I created a bash script like 'XXXX.sh' but I don't know how to execute it. Any chance you could you provide further info?When I have my phone connected to my PC with adb debugging turned on (a too-frequent setup), I use the following little bash script to do the job for me. This sets the UTC time and date in TWRP to the second.
Code:#!/bin/bash adb devices UT=$(date -u '+%Y.%m.%d-%H:%M:%S') adb shell date -us $UT
This is awesome, thanks! You're a hero! :highfive:When I have my phone connected to my PC with adb debugging turned on (a too-frequent setup), I use the following little bash script to do the job for me. This sets the UTC time and date in TWRP to the second.
Code:#!/bin/bash adb devices UT=$(date -u '+%Y.%m.%d-%H:%M:%S') adb shell date -us $UT