Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix datetime handling for legacy/current versions #229

Merged
merged 2 commits into from
May 10, 2024

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented May 10, 2024

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

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.

refs GH-227
@atc0005 atc0005 added the bug Something isn't working label May 10, 2024
@atc0005 atc0005 added this to the v0.1.9 milestone May 10, 2024
@atc0005 atc0005 self-assigned this May 10, 2024
@atc0005 atc0005 merged commit 934a38d into master May 10, 2024
31 checks passed
@atc0005 atc0005 deleted the i227-fix-datetime-handling branch May 10, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current datetime handling does not support newer Red Hat Satellite versions
1 participant