Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 9ee7aaa

Browse files
author
Harry Zhang
committed
Use RFC3339 for time parse
1 parent f8ce202 commit 9ee7aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/hyper/hyper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func parseTimeString(str string) (time.Time, error) {
193193
return t, nil
194194
}
195195

196-
layout := "2006-01-02T15:04:05Z"
196+
layout := time.RFC3339
197197
t, err := time.Parse(layout, str)
198198
if err != nil {
199199
return t, err

0 commit comments

Comments
 (0)