fix: handle datetime serialization in update_task and move endpoint
This commit is contained in:
@@ -221,7 +221,7 @@ async def move_task(
|
||||
await opc_db.stop_time_entry(task_id=task_id)
|
||||
|
||||
if move.status == "done":
|
||||
updates["completed_at"] = datetime.utcnow()
|
||||
updates["completed_at"] = datetime.utcnow().replace(tzinfo=None)
|
||||
|
||||
updated_task = await opc_db.update_task(
|
||||
task_id=task_id,
|
||||
|
||||
Reference in New Issue
Block a user