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.

BUG=chromium:708177
TEST=manual. Set time, remove battery, time still correct after boot.

Change-Id: Icf77fb492e3f617d6358027f3d8e29bc590d5974
Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/544631
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
1 file changed