They may contain negative UTC offsets, which is allowed by RFC3339,
but not by ISO8601.
See the last paragraph of https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC for details
I also removed (in UTC) because it's not true.
Paths
| Differential D6730 Authored by vlorentz on Dec 2 2021, 3:50 PM.
Details
Summary They may contain negative UTC offsets, which is allowed by RFC3339, See the last paragraph of https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC for details I also removed (in UTC) because it's not true.
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptDec 2 2021, 3:50 PM2021-12-02 15:50:59 (UTC+1) vlorentz edited the summary of this revision. (Show Details)Dec 2 2021, 3:52 PM2021-12-02 15:52:12 (UTC+1) vlorentz added a child revision: D6731: api: Specify date formats more precisely.Dec 2 2021, 3:54 PM2021-12-02 15:54:55 (UTC+1) vlorentz edited the summary of this revision. (Show Details)Dec 2 2021, 3:59 PM2021-12-02 15:59:00 (UTC+1) Comment Actions Build is green Patch application report for D6730 (id=24453)Rebasing onto 284eec7e75... Current branch diff-target is up to date. Changes applied before testcommit 9502510d8092715c96894f7699a6c8c589865d74 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Thu Dec 2 15:50:50 2021 +0100 api: Fix documentation of the format used for git date fields They may contain negative UTC offsets, which is allowed by RFC3339, but not by ISO8601. See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1259/ for more details. Harbormaster completed remote builds in B25329: Diff 24453.Dec 2 2021, 4:08 PM2021-12-02 16:08:40 (UTC+1) This revision is now accepted and ready to land.Dec 2 2021, 4:19 PM2021-12-02 16:19:33 (UTC+1) Closed by commit rDWAPPS9502510d8092: api: Fix documentation of the format used for git date fields (authored by vlorentz). · Explain WhyDec 6 2021, 10:54 AM2021-12-06 10:54:22 (UTC+1) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 24498 swh/web/api/views/release.py
swh/web/api/views/revision.py
swh/web/tests/api/test_apidoc.py
|
this one too, for consistency