Skip to content

Commit

Permalink
force timezone to upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
murphybytes committed Jul 6, 2021
1 parent 972fe2c commit eef54d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/collect/host_time.go
Expand Up @@ -55,6 +55,8 @@ func (c *CollectHostTime) Collect(progressChan chan<- interface{}) (map[string][
timeInfo.Timezone = "UTC"
}

timeInfo.Timezone = strings.ToUpper(timeInfo.Timezone)

prop = "org.freedesktop.timedate1.NTPSynchronized"
variant, err = conn.Object("org.freedesktop.timedate1", "/org/freedesktop/timedate1").GetProperty(prop)
if err != nil {
Expand Down

0 comments on commit eef54d0

Please sign in to comment.