fix: formatea fechas de historial de inventario a hora local del navegador
Some checks failed
CI / lint-and-test (3.11) (push) Has been cancelled
CI / lint-and-test (3.13) (push) Has been cancelled

This commit is contained in:
2026-06-25 23:29:25 +00:00
parent 98e037c09a
commit d3e1660cb1
4 changed files with 14 additions and 5 deletions

View File

@@ -374,7 +374,7 @@ def get_movement_history(conn, inventory_id, limit=50):
history.append({
'id': r[0], 'type': r[1], 'quantity': r[2],
'cost': float(r[3]) if r[3] else None,
'notes': r[4], 'date': str(r[5]),
'notes': r[4], 'date': r[5].isoformat() if r[5] else None,
'employee': r[6], 'branch_id': r[7]
})
cur.close()