diff options
author | Daniel Kilimnik <mail@kilimnik.de> | 2023-09-23 14:15:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 12:15:05 +0000 |
commit | 0ee7cbf725f45650136be45f8e0f74d395f73b5c (patch) | |
tree | 90545bec038a6395732c5a91516570d59f613c24 /templates | |
parent | 5f7388e586d4aa53e6689a0faa962ee26e5509cf (diff) | |
download | gitea-0ee7cbf725f45650136be45f8e0f74d395f73b5c.tar.gz gitea-0ee7cbf725f45650136be45f8e0f74d395f73b5c.zip |
Fix push mirror, wrong timestamp format (#27153)
I noticed, that the push mirrors endpoint, is the only endpoint which
returns the times in long format rather than as time.Time().
I think the behavior should be consistent across the project.
----
## ⚠️ BREAKING ⚠️
This PR changes the time format used in API responses for all
push_mirror endpoints which return a push mirror.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 4b43200bc6..a9a69bc82a 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -21646,6 +21646,7 @@ "properties": { "created": { "type": "string", + "format": "date-time", "x-go-name": "CreatedUnix" }, "interval": { @@ -21658,6 +21659,7 @@ }, "last_update": { "type": "string", + "format": "date-time", "x-go-name": "LastUpdateUnix" }, "remote_address": { |