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.
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