diff --git a/swh/web/api/views/release.py b/swh/web/api/views/release.py --- a/swh/web/api/views/release.py +++ b/swh/web/api/views/release.py @@ -30,7 +30,7 @@ {common_headers} :>json object author: information about the author of the release - :>json string date: ISO representation of the release date (in UTC) + :>json string date: RFC3339 representation of the release date :>json string id: the release unique identifier :>json string message: the message associated to the release :>json string name: the name of the release diff --git a/swh/web/api/views/revision.py b/swh/web/api/views/revision.py --- a/swh/web/api/views/revision.py +++ b/swh/web/api/views/revision.py @@ -15,9 +15,8 @@ :>json object author: information about the author of the revision :>json object committer: information about the committer of the revision - :>json string committer_date: ISO representation of the commit date - (in UTC) - :>json string date: ISO representation of the revision date (in UTC) + :>json string committer_date: RFC3339 representation of the commit date + :>json string date: RFC3339 representation of the revision date :>json string directory: the unique identifier that revision points to :>json string directory_url: link to :http:get:`/api/1/directory/(sha1_git)/[(path)/]` to get diff --git a/swh/web/tests/api/test_apidoc.py b/swh/web/tests/api/test_apidoc.py --- a/swh/web/tests/api/test_apidoc.py +++ b/swh/web/tests/api/test_apidoc.py @@ -39,9 +39,8 @@ :>json object author: information about the author of the revision :>json object committer: information about the committer of the revision - :>json string committer_date: ISO representation of the commit date - (in UTC) - :>json string date: ISO representation of the revision date (in UTC) + :>json string committer_date: RFC3339 representation of the commit date + :>json string date: RFC3339 representation of the revision date :>json string directory: the unique identifier that revision points to :>json string directory_url: link to :http:get:`/api/1/directory/(sha1_git)/[(path)/]` to get information @@ -288,12 +287,12 @@ { "name": "committer_date", "type": "string", - "doc": "ISO representation of the commit date (in UTC)", + "doc": "RFC3339 representation of the commit date", }, { "name": "date", "type": "string", - "doc": "ISO representation of the revision date (in UTC)", + "doc": "RFC3339 representation of the revision date", }, { "name": "directory",