diff --git a/cmd/peer-rest-server.go b/cmd/peer-rest-server.go index 8bd1807fc..1b8e00b1c 100644 --- a/cmd/peer-rest-server.go +++ b/cmd/peer-rest-server.go @@ -770,7 +770,7 @@ func (s *peerRESTServer) ServerUpdateHandler(w http.ResponseWriter, r *http.Requ var latestReleaseTime time.Time var err error if latestRelease := vars[peerRESTLatestRelease]; latestRelease != "" { - latestReleaseTime, err = time.Parse(latestRelease, time.RFC3339) + latestReleaseTime, err = time.Parse(time.RFC3339, latestRelease) if err != nil { s.writeErrorResponse(w, err) return