1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-16 07:18:37 +00: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:
Daniel Kilimnik
2023-09-23 14:15:05 +02:00
committed by GitHub
parent 5f7388e586
commit 0ee7cbf725
3 changed files with 16 additions and 10 deletions

View File

@@ -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": {