From a50767d58449922fff5e79ce54f41ee7664ba04e Mon Sep 17 00:00:00 2001 From: Patrick Henninger Date: Fri, 8 May 2020 20:42:17 +0200 Subject: [PATCH] Use Carbon instead of date --- src/Cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cart.php b/src/Cart.php index 182ef29..f4474c3 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -633,8 +633,8 @@ class Cart 'identifier' => $identifier, 'instance' => $this->currentInstance(), 'content' => serialize($content), - 'created_at' => $this->createdAt ?: date('Y-m-d H:i:s'), - 'updated_at' => date('Y-m-d H:i:s'), + 'created_at' => $this->createdAt ?: Carbon::now(), + 'updated_at' => Carbon::now(), ]); $this->events->dispatch('cart.stored');