mirror of
				https://github.com/gregtwallace/apc-p15-tool.git
				synced 2025-11-03 23:57:33 +00:00 
			
		
		
		
	Update cmd_gettime.go
This commit is contained in:
		
					parent
					
						
							
								192021b405
							
						
					
				
			
			
				commit
				
					
						681988235f
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -29,6 +29,7 @@ func (cli *Client) GetTime() (time.Time, error) {
 | 
			
		|||
	timeZoneVal := datePieces[4]
 | 
			
		||||
 | 
			
		||||
	// GMT time requires + prefix
 | 
			
		||||
	// APC UPS fails to use the required +, so add it
 | 
			
		||||
	if timeZoneVal == "00:00" {
 | 
			
		||||
		timeZoneVal = "+" + timeZoneVal
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue