mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02:14 +00:00
Fix 23nd and 24rd
This commit is contained in:
parent
dba1f9ea8e
commit
2ddd06cea4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue