Fix '0 years ago' bug

This commit is contained in:
Noah Petherbridge 2023-10-10 20:19:52 -07:00
parent f21af625c1
commit 85c945579b

View File

@ -38,7 +38,7 @@ func FormatDurationCoarse(duration time.Duration) string {
} }
months := int64(days / 30) months := int64(days / 30)
if months < 12 { if months <= 12 {
return result("%d months", months) return result("%d months", months)
} }