Skip to content

Commit

Permalink
Fix set windows system time
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jan 9, 2025
1 parent 4dabb9b commit d9f6eb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/ntp/time_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d9f6eb1

Please sign in to comment.