Fix '0 years ago' bug

face-detect
Noah Petherbridge 2023-10-10 20:19:52 -07:00
parent f21af625c1
commit 85c945579b
1 changed files with 1 additions and 1 deletions

View File

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