added setting of timezone

This commit is contained in:
uli 2022-05-29 23:39:16 +02:00
parent 958f2af516
commit b7d8d4376d
1 changed files with 6 additions and 0 deletions

View File

@ -148,6 +148,12 @@ func main() {
log.Error().Err(err).Msg("Error setting current time on connected InfiniTime")
}
// Set time corresponding to current time
err = dev.SetTimezone(time.Now())
if err != nil {
log.Error().Err(err).Msg("Error setting local time on connected InfiniTime")
}
// Initialize music controls
err = initMusicCtrl(dev)
if err != nil {