diff --git a/src/app/backend/controllers/DiscountController.php b/src/app/backend/controllers/DiscountController.php index c8b683d..b892f02 100644 --- a/src/app/backend/controllers/DiscountController.php +++ b/src/app/backend/controllers/DiscountController.php @@ -170,6 +170,8 @@ class DiscountController extends Controller $data[0]['name'] = $this->request->getPost('name', 'string', NULL ); $data[0]['discount'] = $this->request->getPost('discount', 'int', 0 ); $data[0]['start_date'] = $this->request->getPost('start_date'); + $data[0]['start_date'] = date('Y-m-d H:i:s', strtotime($data[0]['start_date'])); + $data[0]['end_date'] = date('Y-m-d H:i:s', strtotime($data[0]['end_date'])); $data[0]['end_date'] = $this->request->getPost('end_date'); $data[0]['description'] = $this->request->getPost('description'); $data[0]['group_ids'] = $this->request->getPost('items', 'string', NULL ); -- libgit2 0.21.4