Closed chengjk closed 4 weeks ago
2024-08-18T00:00:00+08:00
-> 2024-08-18T00:00:00%2B08:00
+
-> %2B
because the query value will be unescaped.
2024-08-18T00:00:00+08:00
->2024-08-18T00:00:00%2B08:00
+
->%2B
because the query value will be unescaped.
by the way, you can set tag like time_format
, time_utc
, time_location
type Param struct {
Start time.Time `json:"start" form:"start" time_format:"2006-01-02T15:04:05Z07:00" time_utc:"true" time_location:"UTC"`
...
}
It works ,thank you very much.
Description
I have Param Struct to QueryBind with, I think it parse time failed when bind query.
I use the defult format: time.RFC3339, it should works at param:
How to reproduce
Expectations
Expect (bad case)
Actual result
Expect (good case)
use default zone
Actual result
used utc timezone
Environment