json.Unmarshal uses RFC3339 to decode MysqL datetime type into time.Time.
Json snippet
Right
"Datetime": "2017-07-06T17:27:00Z"
Wrong
"Datetime": "2017-07-06 17:27:00"
or
"Datetime": "2017-07-06T17:27:00"
Reference
- json.Unmarshal uses RFC3339 to decode datetime but why mine is not working? @H_502_35@ 原文链接:https://www.f2er.com/go/188283.html