Fix '0 years ago' bug
This commit is contained in:
parent
f21af625c1
commit
85c945579b
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user