Эх сурвалжийг харах

añadir arreglo logs hora

latapp 10 сар өмнө
parent
commit
6719479ec1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      public/js/app.js

+ 1 - 1
public/js/app.js

@@ -73,7 +73,7 @@ async function processOrder() {
             table: userTable,
             items: cart.map(item => ({ id: item.id, name: item.name, quantity: item.quantity, price: item.price, itemTotal: item.price * item.quantity })),
             totalAmount: cart.reduce((sum, item) => sum + item.price * item.quantity, 0),
-            orderDate: new Date().toISOString(),
+            orderDate: new Date().toLocaleString('sv-SE').replace(' ', 'T')
         };
         console.log("Enviando Pedido:", orderData);
         await sendOrder(orderData);