pcDuino8 Uno doesn’t have an onboard RTC. So if you power it up, the clock and date will be lost. Once you get network connection, you can force a time update using the following command:
$sudo ntpdate -s time.nist.gov
If you want that it happens automatically every time it reboots,
<code>( /etc/init.d/ntp stop until ping -nq -c3 8.8.8.8; do echo "Waiting for network..." done ntpdate -s time.nist.gov /etc/init.d/ntp start ) </code>
We can change the time zone by:
$sudo dpkg-reconfigure tzdata
Leave a Reply
You must be logged in to post a comment.