poopy
sophuwu sophie@skisiel.com
Tue, 06 Aug 2024 16:58:55 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
cli.go
→
cli.go
@@ -46,10 +46,10 @@ return fmt.Sprintf("%d h ago", int(d.Hours()))
} return fmt.Sprintf("%d m ago", int(d.Minutes())) }(), "th", (func() string { - if t.Day()%9 < 1 || t.Day()%9 > 3 { + if t.Day()%10 < 1 || t.Day()%10 > 3 { return "th" } - return []string{"st", "nd", "rd"}[t.Day()%9-1] + return []string{"st", "nd", "rd"}[t.Day()%10-1] })()) }