Skip to content

Commit 488df37

Browse files
committed
BUG/MINOR: info: change the build time format to conform to RFC 3339
1 parent 36db6d3 commit 488df37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ GIT_TAG_COMMIT=$(shell git rev-parse --short ${GIT_LAST_TAG})
66
GIT_MODIFIED1=$(shell git diff "${GIT_HEAD_COMMIT}" "${GIT_TAG_COMMIT}" --quiet || echo .dev)
77
GIT_MODIFIED2=$(shell git diff --quiet || echo .dirty)
88
GIT_MODIFIED=${GIT_MODIFIED1}${GIT_MODIFIED2}
9-
BUILD_DATE=$(shell date '+%Y-%m-%dT%H:%M:%S')
9+
BUILD_DATE=$(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
1010
CGO_ENABLED?=0
1111
GOOS?=linux
1212

handlers/information.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (h *GetInfoHandlerImpl) Handle(params information.GetInfoParams, principal
6969
api := &models.InfoAPI{
7070
Version: h.Version,
7171
}
72-
date, err := time.Parse("2006-01-02T15:04:05", h.BuildTime)
72+
date, err := time.Parse("2006-01-02T15:04:05Z", h.BuildTime)
7373
if err == nil {
7474
api.BuildDate = strfmt.DateTime(date)
7575
} else {

0 commit comments

Comments
 (0)