From 3280af21ed1a82aa2b964ae098596b2f13a5fc22 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 20 Dec 2019 18:31:55 +0000 Subject: Fix TimeSince calculation --- renderer/renderer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/renderer.go b/renderer/renderer.go index 890006b..3eb0457 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -113,7 +113,7 @@ func TimeSince(t time.Time) string { return strconv.Itoa(int(mo)) + "mo" } - y := m / 12 + y := mo / 12 return strconv.Itoa(int(y)) + "y" } -- cgit v1.2.3