From c2ddca03b71e155f6486bf5a7aebbbfb61fe5cd3 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 14 Mar 2026 19:26:30 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20created=5Fat=20must=20be=20UnixMilli=20n?= =?UTF-8?q?ot=20RFC3339=20string=20=E2=80=94=20was=20silently=20dropping?= =?UTF-8?q?=20new=20list/section/request=20from=20tree?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/handlers.go b/api/handlers.go index c89a79a..a3c2377 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -1955,7 +1955,7 @@ func (h *Handlers) CreateSection(w http.ResponseWriter, r *http.Request) { `SELECT COALESCE(MAX(sort_order),0) FROM entries WHERE parent_id=? AND deleted_at IS NULL`, body.ParentID, ).Scan(&maxSort) - now := time.Now().UTC().Format(time.RFC3339) + now := time.Now().UnixMilli() secID := uuid.New().String() name := strings.TrimSpace(body.Name) secData := lib.SectionData{Name: name} @@ -2001,7 +2001,7 @@ func (h *Handlers) CreateRequest(w http.ResponseWriter, r *http.Request) { `SELECT COALESCE(MAX(sort_order),0) FROM entries WHERE parent_id=? AND deleted_at IS NULL`, body.ParentID, ).Scan(&maxSort) - now := time.Now().UTC().Format(time.RFC3339) + now := time.Now().UnixMilli() reqID := uuid.New().String() title := strings.TrimSpace(body.Title) reqData := lib.RequestData{Title: title, Status: "open", Priority: "medium"} @@ -2046,7 +2046,7 @@ func (h *Handlers) CreateRequestList(w http.ResponseWriter, r *http.Request) { return } - now := time.Now().UTC().Format(time.RFC3339) + now := time.Now().UnixMilli() listName := strings.TrimSpace(body.Name) requestListID := uuid.New().String()