atc0005 / check-rsat

Go-based tooling to monitor Red Hat Satellite systems; NOT affiliated with or endorsed by Red Hat, Inc.
MIT License
0 stars 0 forks source link

Fix datetime handling for legacy/current versions #229

Closed atc0005 closed 4 months ago

atc0005 commented 4 months ago

Overview

Update datetime handling logic to work equally well with legacy versions of Red Hat Satellite (e.g., 6.5) as well as the latest release (6.15).

To support the slightly different datetime formats used between legacy/current Satellite releases (and depending on what Timezone setting is selected for the Satellite account accessing the API) a helper function is used to attempt parsing for all known datetime layouts.

References