Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gogf/gf
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchenma committed Feb 2, 2021
2 parents 813841b + 930e63e commit d4f982a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os/gtime/gtime_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ func formatToRegexPattern(format string) string {
// formatMonthDaySuffixMap returns the short english word for current day.
func formatMonthDaySuffixMap(day string) string {
switch day {
case "01":
case "01", "21", "31":
return "st"
case "02":
case "02", "22":
return "nd"
case "03":
case "03", "23":
return "rd"
default:
return "th"
Expand Down

0 comments on commit d4f982a

Please sign in to comment.