From 2d5d703e4baa6437c818361a37d4b8ebc464dc33 Mon Sep 17 00:00:00 2001 From: Nick DeJesus Date: Thu, 1 Jun 2023 22:25:00 -0400 Subject: [PATCH] add timestamp to entry --- use-shopping-cart/core/Entry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/use-shopping-cart/core/Entry.js b/use-shopping-cart/core/Entry.js index 3b9dca76..74662a9e 100644 --- a/use-shopping-cart/core/Entry.js +++ b/use-shopping-cart/core/Entry.js @@ -54,6 +54,7 @@ function Entry({ id, product, quantity, price_metadata, product_metadata }) { id, quantity, value: product.price * quantity, + timestamp: new Date().toISOString(), // add a timestamp in ISO 8601 format price_data: { ...product.price_data, ...price_metadata