From 1350358d3893f218a5cae308d55ffc9f7d26bc0b Mon Sep 17 00:00:00 2001 From: Tamer Tas <contact@tmrts.com> Date: Thu, 12 Jan 2017 20:34:10 +0300 Subject: [PATCH] pkg/template: format template timestamps with RFC1123 --- pkg/template/metadata.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/template/metadata.go b/pkg/template/metadata.go index 7438ae4..34f1212 100644 --- a/pkg/template/metadata.go +++ b/pkg/template/metadata.go @@ -25,7 +25,8 @@ func (m Metadata) String() []string { type JSONTime time.Time const ( - timeFormat = "Mon Jan 2 15:04 -0700 +07 2006" + // "Mon, 02 Jan 2006 15:04:05 MST" + timeFormat = time.RFC1123 ) // NewTime returns a new JSONTime containing the current time. -- GitLab