mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-06-07 12:26:51 +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]
|
timeZoneVal := datePieces[4]
|
||||||
|
|
||||||
// GMT time requires + prefix
|
// GMT time requires + prefix
|
||||||
|
// APC UPS fails to use the required +, so add it
|
||||||
if timeZoneVal == "00:00" {
|
if timeZoneVal == "00:00" {
|
||||||
timeZoneVal = "+" + timeZoneVal
|
timeZoneVal = "+" + timeZoneVal
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue