#9 common: conform generated_at to ISO 8601 UTC
Merged 5 years ago by psss. Opened 5 years ago by mvadkert.
fedora-ci/ mvadkert/messages rfe/generated_at_iso8601  into  master

file modified
+5 -5
@@ -21,13 +21,13 @@ 

          description:

              Time when the requested was generated. This can be useful to track

              various lags in the system of messages, e.g. datagrepper lagging in

-             logging a message. This should be a string of UTC time in ISO

+             logging a message. This should be a string of UTC time in ISO 8601

              format. In Python. You can generate the format via

  

                  import datetime

-                 datetime.datetime.utcnow().isoformat()

+                 datetime.datetime.utcnow().isoformat() + 'Z'

          examples:

-             - '2018-05-10 08:58:31.222602'

+             - '2018-09-14T18:50:26.143559Z'

          type: string

      issue_url:

          description:
@@ -131,9 +131,9 @@ 

      version:

          description:

              Version of the specification. Following semantic versioning

-             (https://semver.org/). Current version is 0.1.0.

+             (https://semver.org/). Current version is 0.1.1.

          examples:

-             - 0.1.0

+             - 0.1.1

          type: string

      web_url:

          description:

It was pointed out that the definition is not following the standard.
This patch should fix it.

Reference: https://en.wikipedia.org/wiki/ISO_8601

Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com

+1 change looks good to me. Thank you for making that change.

Agreed, makes sense to be strictly aligned with the standard.

Metadata Update from @psss:
- Request assigned

5 years ago

Pull-Request has been merged by psss

5 years ago
Metadata