title | layout | parent | nav_order |
---|---|---|---|
Timezone |
page |
Configuring |
6 |
{: .no_toc }
{: .no_toc }
- TOC {:toc}
To change the timezone, execute sudo dpkg-reconfigure tzdata
.
It is also possible to run armbian-config
and change the timezon in the "Localisation" menu.
Edit /root/set-timezone.sh
(around line 33), replace unconditional sleep 3
so it sleeps 1 hour, once it received a valid time via NTP:
current_time=$(date)
echo "当前时间: $current_time"
# 延时5秒
#TM# sleep 3
#TM-->
if ! $synced ; then
sleep 3
else
sleep 3600
fi
#TM<--
if ! $synced; then