From eed41aebbbfcce5776083b8bcafd44e129378db9 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Tue, 7 Jun 2022 16:45:03 +0930 Subject: [PATCH] Neaten the formatting of durations --- web/web.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/web.go b/web/web.go index 563e405..a0b0d13 100644 --- a/web/web.go +++ b/web/web.go @@ -374,6 +374,7 @@ func niceTime(t time.Time) timeVariations { panic(err) } ago := durafmt.Parse(time.Since(t)).LimitFirstN(1).Format(units) + ago = strings.ReplaceAll(ago, " ", "") return timeVariations{HumanDuration: ago} }