有關時區自動更新的
在注冊表以下路徑,start鍵值3,4表示自動/不自動更新
計算機\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tzautoupdate
有關時區更改的
cmd下,有個tzutil可用於更改時區
遺留問題
直接去修改注冊表,是不會觸發Windows的時區同步的(如果Windows本身可以自動同步),要加一下cmd(管理員權限)命令
"sc config tzautoupdate start= demand", "net stop tzautoupdate", "net start tzautoupdate", "ping 127.1 -n 1 >nul", "w32tm /resync /nowait");