Open anden007 opened 3 months ago
I seted app.Run(...,iris.WithTimeFormat("2006-01-02 15:04:05")) but it's not work.
I have found the reason. The default serialization function now uses the encoding/JSON package, which used to be a JSONiter. This can explain why I am unable to use the
jsonTime ' Set Default Time Format ("2006-01-02 15:04:05", time. Local)
to set the default time format.
How should I set up MVC What is the format of the date and time when serializing objects in Response? ` func (this *BussApiController) GetActivityBySearch() mvc.Result {
} ` I used to be able to set the default time format for JSON serialization using the GitHub. com/liamylian/jsontime/v2/v2 package when using v12.2.8. However, after upgrading to v12.2.11, this method has become ineffective.
`import(
) func main() {
} `