Skip to content

Commit

Permalink
all: bring back Go <= 1.18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
leonklingele committed Sep 8, 2023
1 parent 1e268a2 commit 0026bd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ linters-settings:
http-status-code: true
time-weekday: true
time-month: true
time-layout: true
# time-layout: true
crypto-hash: true
default-rpc-path: true
os-dev-null: true
Expand Down
6 changes: 3 additions & 3 deletions ctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func Test_Ctx_BodyParser_WithSetParserDecoder(t *testing.T) {
type CustomTime time.Time

timeConverter := func(value string) reflect.Value {
if v, err := time.Parse(time.DateOnly, value); err == nil {
if v, err := time.Parse("2006-01-02", value); err == nil {
return reflect.ValueOf(v)
}
return reflect.Value{}
Expand Down Expand Up @@ -4196,7 +4196,7 @@ func Test_Ctx_QueryParser_WithSetParserDecoder(t *testing.T) {
type NonRFCTime time.Time

nonRFCConverter := func(value string) reflect.Value {
if v, err := time.Parse(time.DateOnly, value); err == nil {
if v, err := time.Parse("2006-01-02", value); err == nil {
return reflect.ValueOf(v)
}
return reflect.Value{}
Expand Down Expand Up @@ -4452,7 +4452,7 @@ func Test_Ctx_ReqHeaderParser_WithSetParserDecoder(t *testing.T) {
type NonRFCTime time.Time

nonRFCConverter := func(value string) reflect.Value {
if v, err := time.Parse(time.DateOnly, value); err == nil {
if v, err := time.Parse("2006-01-02", value); err == nil {
return reflect.ValueOf(v)
}
return reflect.Value{}
Expand Down
2 changes: 1 addition & 1 deletion middleware/logger/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var ConfigDefault = Config{
Next: nil,
Done: nil,
Format: "[${time}] ${status} - ${latency} ${method} ${path}\n",
TimeFormat: time.TimeOnly,
TimeFormat: "15:04:05",
TimeZone: "Local",
TimeInterval: 500 * time.Millisecond,
Output: os.Stdout,
Expand Down

0 comments on commit 0026bd0

Please sign in to comment.