创建批处理文件

  • 打开记事本或
  • 复制

@echo off

:: 设置时区为美国东部时间(ET)

tzutil /s "Eastern Standard Time"

:: 显示当前时间和日期以确认更改

echo The current time is now:  

time /t

date /t

pause


  • 将文件保存为 set_us_time.bat(或你喜.bat
  1. 运行批处理文件
  • 找到刚才保存的 set_us_time.bat 文件。
  • 右键点击文件,并选择“以管理员身份运行”。

这个脚本的功能如下:

  • tzutil /s "Eastern Standard Time":设置系统时区为美国东部时间(ET)。如果你需要其他时区,可以更改这个参数,例如 "Pacific Standard Time"(美国太平洋时间)。
  • time /tdate /t:显示当前的时间和日期,方便你检查时区是否已经正确设置。