From 116ffbb4384038f56a3055ea44d1a408d97b9a9a Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 1 Jul 2021 14:25:16 +0300 Subject: [PATCH] [#94] Fix time format Signed-off-by: Denis Kirillov --- api/handler/get.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/get.go b/api/handler/get.go index eabacd18..1cb62fb0 100644 --- a/api/handler/get.go +++ b/api/handler/get.go @@ -58,7 +58,7 @@ func writeHeaders(h http.Header, info *layer.ObjectInfo) { if len(info.ContentType) > 0 { h.Set(api.ContentType, info.ContentType) } - h.Set(api.LastModified, info.Created.Format(http.TimeFormat)) + h.Set(api.LastModified, info.Created.Format(time.RFC3339)) h.Set(api.ContentLength, strconv.FormatInt(info.Size, 10)) h.Set(api.ETag, info.HashSum)