From b7a058e290e3ae98473e59dbf0c3ca76f3d2eb1e Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Thu, 3 Mar 2016 10:42:08 -0800 Subject: [PATCH] rkt: Formats the timestamp to RFC3339. This should fix the e2e test: "should be able to retrieve and filter logs [Conformance]". --- pkg/kubelet/rkt/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/rkt/log.go b/pkg/kubelet/rkt/log.go index d87068fb8af..e469f653f6b 100644 --- a/pkg/kubelet/rkt/log.go +++ b/pkg/kubelet/rkt/log.go @@ -76,7 +76,7 @@ func pipeLog(wg *sync.WaitGroup, logOptions *api.PodLogOptions, r io.ReadCloser, var result string if logOptions.Timestamps { // Use the same time format as docker. - result = fmt.Sprintf("%s %s\n", t, msg) + result = fmt.Sprintf("%s %s\n", t.Format(time.RFC3339), msg) } else { result = fmt.Sprintf("%s\n", msg) }