From d9f6eb136d177971b9cfc2ae528eb1fa95486e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 9 Jan 2025 23:30:25 +0800 Subject: [PATCH] Fix set windows system time --- common/ntp/time_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/ntp/time_windows.go b/common/ntp/time_windows.go index 5aab23ed..82d87981 100644 --- a/common/ntp/time_windows.go +++ b/common/ntp/time_windows.go @@ -7,6 +7,7 @@ import ( ) func SetSystemTime(nowTime time.Time) error { + nowTime = nowTime.UTC() var systemTime windows.Systemtime systemTime.Year = uint16(nowTime.Year()) systemTime.Month = uint16(nowTime.Month())