Fixed: The max order date getting saved in the wrong required format

This commit is contained in:
vishalsingh.qlo325
2024-05-27 12:52:09 +05:30
parent 9eaa988637
commit d47362e483

View File

@@ -336,6 +336,8 @@ class AdminOrderPreferencesControllerCore extends AdminController
// To prevent this from saving in the configuration table
unset($_POST['max_global_booking_date_formatted']);
// To prevent the saving of the wrong
$_POST['MAX_GLOBAL_BOOKING_DATE'] = date('Y-m-d', strtotime(Tools::getValue('MAX_GLOBAL_BOOKING_DATE')));
$maxGlobalBookingDate = Tools::getValue('MAX_GLOBAL_BOOKING_DATE');
$globalPreparationTime = Tools::getValue('GLOBAL_PREPARATION_TIME');
$maxGlobalBookingDateFormatted = date('Y-m-d', strtotime($maxGlobalBookingDate));