mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 11:57:39 +03:00
Fix set windows system time
This commit is contained in:
parent
4dabb9be97
commit
d9f6eb136d
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func SetSystemTime(nowTime time.Time) error {
|
func SetSystemTime(nowTime time.Time) error {
|
||||||
|
nowTime = nowTime.UTC()
|
||||||
var systemTime windows.Systemtime
|
var systemTime windows.Systemtime
|
||||||
systemTime.Year = uint16(nowTime.Year())
|
systemTime.Year = uint16(nowTime.Year())
|
||||||
systemTime.Month = uint16(nowTime.Month())
|
systemTime.Month = uint16(nowTime.Month())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue