Parsing a json datetime in revel
问题 I'm attempting to parse a Datetime in revel from a json request. The request looks something like this: { "startedAt": "2017-06-01 10:39", ... } The struct it's being decoded into looks like this: type MyStruct struct { StartedAt time.Time `json:"startedAt" bson:"startedAt"` ... } The decode line looks like this: json.NewDecoder(c.Request.Body).Decode(&MyStruct) Revel returns this error: interface conversion: error is *time.ParseError, not *errors.Error According to revel's documentation here