Update cmd_gettime.go

This commit is contained in:
Greg T. Wallace 2025-03-17 22:00:46 -04:00 committed by GitHub
parent 192021b405
commit 681988235f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}