From 4c29dfee9be26996ce548e2edf0328422df598d0 Mon Sep 17 00:00:00 2001
From: T <t@tjp.lol>
Date: Mon, 4 Aug 2025 10:41:08 -0600
Subject: Fix time query parameters to force them to datetime format

---
 internal/database/queries.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'internal/database/queries.sql')

diff --git a/internal/database/queries.sql b/internal/database/queries.sql
index b798cbf..073574a 100644
--- a/internal/database/queries.sql
+++ b/internal/database/queries.sql
@@ -118,8 +118,8 @@ select * from project where name = @name and client_id = @client_id limit 1;
 -- name: CreateTimeEntryWithTimes :one
 insert into time_entry (start_time, end_time, description, client_id, project_id, billable_rate)
 values (
-    @start_time, 
-    @end_time, 
+    datetime(@start_time), 
+    datetime(@end_time), 
     @description, 
     @client_id, 
     @project_id,
-- 
cgit v1.2.3

