From 6ec8aa0d8edc16cd4136a058339906f90f971fcf Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Fri, 4 Oct 2024 12:41:53 +0530 Subject: [PATCH] Fixed: Dates validations issue while checking conditions for Allow backdate order from Back-office --- controllers/admin/AdminOrdersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index c2dfabf7e..806c0b68d 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -3981,7 +3981,7 @@ class AdminOrdersControllerCore extends AdminController /*By Webkul Code is added to add order information In our table while adding product in the process order edit from order detail page.*/ $date_from = date('Y-m-d H:i:s', strtotime($product_informations['date_from'])); $date_to = date('Y-m-d H:i:s', strtotime($product_informations['date_to'])); - $curr_date = date('Y-m-d H:i:s'); + $curr_date = date('Y-m-d'); $occupancy = Tools::getValue('occupancy'); /*Validations*/ if ($date_from == '') {