我的 Windows Server 2012r2 服务器(esxi 内的虚拟机)出现问题,认为现在是 2033 年 12 月 2 日。最奇怪的是,它说的正是 NTP 告诉它的日期。
20:25:23, -335476751.7423648s
PS C:\Users\administrator.CF> w32tm /stripchart /computer:pool.ntp.org /dataonly /samples:3
Tracking pool.ntp.org [96.126.122.39:123].
Collecting 3 samples.
The current time is 12/2/2033 8:25:29 PM.
20:25:29, -335476751.7507491s
20:25:31, -335476751.7493971s
20:25:33, -335476751.7495433s
PS C:\Users\administrator.CF> w32tm /stripchart /computer:0.ro.pool.ntp.org /dataonly /samples:3
Tracking 0.ro.pool.ntp.org [162.159.200.123:123].
Collecting 3 samples.
The current time is 12/2/2033 8:25:42 PM.
20:25:42, -335476751.7499849s
20:25:44, -335476751.7544872s
20:25:46, -335476751.7553163s
PS C:\Users\administrator.CF> w32tm /stripchart /computer:1.ro.pool.ntp.org /dataonly /samples:3
Tracking 1.ro.pool.ntp.org [185.173.16.132:123].
Collecting 3 samples.
The current time is 12/2/2033 8:25:52 PM.
20:25:52, -335476751.7387477s
20:25:54, -335476751.7432034s
20:25:56, -335476751.7432303s
PS C:\Users\administrator.CF> w32tm /stripchart /computer:2.ro.pool.ntp.org /dataonly /samples:3
Tracking 2.ro.pool.ntp.org [93.190.144.3:123].
Collecting 3 samples.
The current time is 12/2/2033 8:26:02 PM.
20:26:02, -335476751.7415654s
20:26:04, -335476751.7517593s
20:26:06, -335476751.7508327s
PS C:\Users\administrator.CF>
有人知道这是怎么发生的吗?如何解决服务器上设置正确时间的问题?
====编辑====
对于@jaromanda X,w32tm 显示:
PS C:\Users\administrator.CF> w32tm /tz
Time zone: Current:TIME_ZONE_ID_STANDARD Bias: 360min (UTC=LocalTime+Bias)
[Standard Name:"Central Standard Time" Bias:0min Date:(M:11 D:1 DoW:0)]
[Daylight Name:"Central Daylight Time" Bias:-60min Date:(M:3 D:2 DoW:0)]
答案1
如果问题出在时间服务上,您可以在提升的命令提示符 (CMD) 中运行以下命令将服务重置为默认状态:
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
您可以通过以下方式验证您的时间服务器:
- 跑步
timedate.cpl
- 定位到“Internet 时间”选项卡
- 单击“更改设置...”并验证您的时间服务器(我的是
time.windows.com
) - 确保选中“与 Internet 时间服务器同步”
- 单击“立即更新”,然后单击“确定”保存更改。