From 681988235fef37ddfddcf98eb2cbd2ed3e95746e Mon Sep 17 00:00:00 2001 From: "Greg T. Wallace" <greg@gregtwallace.com> Date: Mon, 17 Mar 2025 22:00:46 -0400 Subject: [PATCH] Update cmd_gettime.go --- pkg/apcssh/cmd_gettime.go | 1 + 1 file changed, 1 insertion(+) 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 }