Bläddra i källkod

añadir arreglo logs hora

latapp 10 månader sedan
förälder
incheckning
6719479ec1
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);