Improve display of dates and times in recent changes
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
a318361b8a
commit
7a0cd18f7a
2
main.go
2
main.go
|
@ -435,7 +435,7 @@ func (h *recentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, c := range changes {
|
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].DateSummary = c.Date.Format("Mon, 2 Jan 2006")
|
||||||
changes[i].TimeSummary = c.Date.Format("15:04")
|
changes[i].TimeSummary = c.Date.Format("15:04")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user