added setting of timezone

This commit is contained in:
uli 2022-05-29 23:39:16 +02:00
parent 958f2af516
commit b7d8d4376d

View File

@ -148,6 +148,12 @@ func main() {
log.Error().Err(err).Msg("Error setting current time on connected InfiniTime") 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 // Initialize music controls
err = initMusicCtrl(dev) err = initMusicCtrl(dev)
if err != nil { if err != nil {