Skip to content

Commit

Permalink
internal/v1: ISO8601 datetime
Browse files Browse the repository at this point in the history
Return an ISO8601 compliant datetime to facilitate
easier parsing and comparison in the frontend.

Addresses osbuild#457
  • Loading branch information
kingsleyzissou committed Oct 28, 2022
1 parent ff80916 commit 4f1e908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/v1/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (h *Handlers) GetComposes(ctx echo.Context, params GetComposesParams) error
var data []ComposesResponseItem
for _, c := range composes {
data = append(data, ComposesResponseItem{
CreatedAt: c.CreatedAt.String(),
CreatedAt: c.CreatedAt.Format(time.RFC3339),
Id: c.Id.String(),
ImageName: c.ImageName,
Request: c.Request,
Expand Down Expand Up @@ -881,7 +881,7 @@ func (h *Handlers) GetComposeClones(ctx echo.Context, composeId string, params G
data = append(data, ClonesResponseItem{
Id: c.Id.String(),
Request: c.Request,
CreatedAt: c.CreatedAt.String(),
CreatedAt: c.CreatedAt.Format(time.RFC3339),
})
}

Expand Down

0 comments on commit 4f1e908

Please sign in to comment.