Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdu2009 committed Jul 10, 2019
1 parent 04b1cf5 commit 909c9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtime/xtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func DayOfIntDateWithFormat(i int, layout string) (time.Time, error) {
}

func DayOfIntDateInLocationWithFormat(i int, layout string, loc *time.Location) (time.Time, error) {
day, err := time.ParseInLocation(layout, fmt.Sprint(layout), loc)
day, err := time.ParseInLocation(layout, fmt.Sprint(i), loc)
if err != nil {
return time.Time{}, errors.WithStack(err)
}
Expand Down

0 comments on commit 909c9ca

Please sign in to comment.