Fix 23nd and 24rd

This commit is contained in:
Daniel Mason 2022-01-29 20:03:21 +13:00
parent dba1f9ea8e
commit 2ddd06cea4

View file

@ -176,7 +176,7 @@ func (item ApiItem) getDateString() string {
// getDaySuffix - get day suffix
func getDaySuffix(t time.Time) string {
suffix := "th"
switch t.Day() {
switch t.Local().Day() {
case 1, 21, 31:
suffix = "st"
case 2, 22: