feat: enhance date handling and formatting in quotes and belo features

This commit is contained in:
Jose Selesan
2026-06-04 11:32:38 -03:00
parent 7c864053bb
commit 0915ad1223
7 changed files with 29 additions and 26 deletions

View File

@@ -25,7 +25,9 @@ export const payExpenseSchema = z.object({
export const updateExpenseSchema = z.object({
amount: z.number().positive("El monto debe ser mayor a 0"),
dueDate: z.string().datetime({ message: "La fecha debe ser una fecha ISO válida" }),
dueDate: z
.string()
.datetime({ message: "La fecha debe ser una fecha ISO válida" }),
});
function lastDayOfMonth(year: number, month: number): number {