Improve display of dates and times in recent changes
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2019-03-03 08:36:22 +01:00
parent a318361b8a
commit 7a0cd18f7a

View File

@ -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 {