From 7a0cd18f7a289e948b6c2efa73f732647be2790d Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 3 Mar 2019 08:36:22 +0100 Subject: [PATCH] Improve display of dates and times in recent changes --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 72a5fec..8da69c1 100644 --- a/main.go +++ b/main.go @@ -435,7 +435,7 @@ func (h *recentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } for i, c := range changes { - if c.Count == 1 { + if c.Count <= 1 { changes[i].DateSummary = c.Date.Format("Mon, 2 Jan 2006") changes[i].TimeSummary = c.Date.Format("15:04") } else {