mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Add support for Luckfox PicoKVM
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
10
timesync.go
10
timesync.go
@@ -4,7 +4,7 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/jetkvm/kvm/internal/timesync"
|
||||
"kvm/internal/timesync"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -51,3 +51,11 @@ func initTimeSync() {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func initTimeZone() {
|
||||
LoadConfig()
|
||||
_, err := CallDisplayCtrlAction("set_timezone", map[string]interface{}{"timezone": config.TimeZone})
|
||||
if err != nil {
|
||||
timesyncLogger.Error().Err(err).Msg("failed to set time zone")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user