Skip to content

Errata datetime parser should accept UTC timezone suffix #860

Description

@sr-rossanderson

Patchman can encounter errata timestamps formatted with a trailing textual UTC timezone, for example:

2026-08-26 12:34:56 UTC

The existing datetime parser does not reliably handle this form.

Expected behaviour:

Common UTC timestamp forms should be accepted, including textual UTC and ISO +00:00.

Suggested fix:

Normalize trailing UTC to +00:00 before parsing, validate the result, and only make the datetime aware if it is naive.

Impact:

Improves resilience when ingesting errata metadata from different RPM/YUM repository implementations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions