tlsdate: Save user manually set time to disk

Some enterprise network only support NTP protocol which make
tlsdate never get time synced via network. As tlsdate currently
flags all non-network source of time to not sync to disk. This
will make time to be incorrect when RTC lost power.

This CL make tlsdate to also sync time from platform to disk to
solve this issue.

TEST=manual. Set time, remove battery, time still correct after boot.

Change-Id: Icf77fb492e3f617d6358027f3d8e29bc590d5974
Signed-off-by: Puthikorn Voravootivat <>
Reviewed-by: Dan Erat <>
Reviewed-by: Jorge Lucangeli Obes <>
1 file changed