mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
Merge branch 'master' of https://github.com/gogf/gf
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user