Commit db0c93ce65a401e88153bfa731be3908804e9321

Authored by Alexey Boroda
1 parent 42883b83

-Timestamp problem

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
models/Order.php
... ... @@ -200,7 +200,8 @@
200 200 protected function convertDate()
201 201 {
202 202 if (!empty( $this->deadline )) {
203   - $date = new \DateTime($this->deadline);
  203 + $date = new \DateTime();
  204 + $date->setTimestamp($this->deadline);
204 205 $date->format("d.m.Y");
205 206 $this->deadline = $date->getTimestamp();
206 207  
... ...