Skip to content

Commit

Permalink
DBHub server now uses RFC3339 for the user database list date format
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Jul 21, 2020
1 parent 9dda23d commit 5d55abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ 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
}
_, err = fmt.Fprintf(fOut, " File last modified: %s\n", z.Local().Format(time.RFC1123))
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
}
Expand Down

0 comments on commit 5d55abd

Please sign in to comment.