forked from Elara6331/itd
		
	added setting of timezone
This commit is contained in:
		
							
								
								
									
										6
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.go
									
									
									
									
									
								
							| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user