Logs
Patchsets
Patchset ps-17
fix: use eventlog time for pr details
jolheiser
web.go
+2
-2
fix: use eventlog time for pr details
Signed-off-by: jolheiser <git@jolheiser.com>
web.go
link
+2
-2
+2
-2
1diff --git a/web.go b/web.go
2index 2e9fed5..95612c6 100644
3--- a/web.go
4+++ b/web.go
5@@ -476,7 +476,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
6 w.WriteHeader(http.StatusUnprocessableEntity)
7 return
8 }
9- slices.SortFunc[[]*EventLog](logs, func(a *EventLog, b *EventLog) int {
10+ slices.SortFunc(logs, func(a *EventLog, b *EventLog) int {
11 return a.CreatedAt.Compare(b.CreatedAt)
12 })
13
14@@ -498,7 +498,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
15 IsAdmin: web.Backend.IsAdmin(pk),
16 Pubkey: user.Pubkey,
17 },
18- Date: pr.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
19+ Date: eventlog.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
20 })
21 }
22