From 5d55abd553aabf930ba73a0fe52fc0ec36fc9eab Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Tue, 21 Jul 2020 22:31:55 +1000 Subject: [PATCH] DBHub server now uses RFC3339 for the user database list date format --- cmd/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/list.go b/cmd/list.go index 1d4acbd..81d6a0c 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -68,7 +68,7 @@ func list(args []string) error { } // The server gives us the last modified and repo modified dates in pre-formatted UTC timezone. For now, lets // convert these back to the users local time - z, err := time.Parse(time.RFC822, j.LastModified) + z, err := time.Parse(time.RFC3339, j.LastModified) if err != nil { return err } @@ -76,7 +76,7 @@ func list(args []string) error { if err != nil { return err } - z, err = time.Parse(time.RFC822, j.RepoModified) + z, err = time.Parse(time.RFC3339, j.RepoModified) if err != nil { return err }