diff --git a/pkg/apcssh/cmd_gettime.go b/pkg/apcssh/cmd_gettime.go index dc07ec6..139b0ba 100644 --- a/pkg/apcssh/cmd_gettime.go +++ b/pkg/apcssh/cmd_gettime.go @@ -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 }