Skip to content

Commit

Permalink
Fix system time
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jan 13, 2025
1 parent 32377a6 commit f2ec319
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 60 deletions.
3 changes: 1 addition & 2 deletions cmd/sing-box/cmd_tools_synctime.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"os"

"github.com/sagernet/sing-box/common/settings"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/log"
E "github.com/sagernet/sing/common/exceptions"
Expand Down Expand Up @@ -58,7 +57,7 @@ func syncTime() error {
return err
}
if commandSyncTimeWrite {
err = settings.SetSystemTime(response.Time)
err = ntp.SetSystemTime(response.Time)
if err != nil {
return E.Cause(err, "write time to system")
}
Expand Down
12 changes: 0 additions & 12 deletions common/settings/time_stub.go

This file was deleted.

14 changes: 0 additions & 14 deletions common/settings/time_unix.go

This file was deleted.

32 changes: 0 additions & 32 deletions common/settings/time_windows.go

This file was deleted.

0 comments on commit f2ec319

Please sign in to comment.