Setting Android Things Time and Time Zone

Worth noting for those looking to set the time and time zone on their Android Things boards.  I found the method that works in a Github repository (a Bluetooth sample project).  Also here is a list of time zones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

Setting the Time

You can set the system clock date/time manually on your Android Things board with the date shell command over ADB. By default, the command accepts a new date in the MMddHHmmYYYY.ss format:

# Reboot ADB into root mode
$ adb root

# Set the date to 2017/12/31 12:00:00
$ adb shell date 123112002017.00

Setting the Time Zone

You can set the system time zone manually by updating the persist.sys.timezone system property over ADB.

# Reboot ADB into root mode
$ adb root

# Set the time zone to US Mountain Time
$ adb shell setprop persist.sys.timezone "America/Denver"