Commit 1a77e3485be174f45d614e36a3422a1997a8c02c

Authored by Alex Savenko
1 parent 5b20a866

strtotime

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/lib/models/discount.php
... ... @@ -161,8 +161,8 @@ class discount extends \db
161 161 'name' => $data['name'],
162 162 'discount' => $data['discount'],
163 163 'description' => $data['description'],
164   - 'start_date' => strtotime($data['start_date']),
165   - 'end_date' => strtotime($data['end_date']),
  164 + 'start_date' => $data['start_date'],
  165 + 'end_date' => $data['end_date'],
166 166 'group_ids' => !empty($data['group_ids']) ? '{'. implode(', ', $data['group_ids']) . '}' : null,
167 167 'status' => $data['status']
168 168 ],
... ...