mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 17:04:38 -04:00
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>
This commit is contained in:
parent
5f7388e586
commit
0ee7cbf725
3 changed files with 16 additions and 10 deletions
2
templates/swagger/v1_json.tmpl
generated
2
templates/swagger/v1_json.tmpl
generated
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue