Commit cdf17826 authored by Shakarim Sapa's avatar Shakarim Sapa

Debug;

parent 7dd250ff
......@@ -225,10 +225,9 @@ class DefaultController extends BaseController
$updatedDate=new \DateTime();
// Произвели модификацию даты
$updatedDate->modify('+7 days');
echo $updatedDate->format('d.m.Y H:i:s'); die;
/** @var User $user */
// Нашли пользователя
$user=User::findOne($this->id);
$user=User::findOne($user->id);
// Переопределили поле
$user->delivery_date = $updatedDate->format('Y-m-d');
// Сохранили изменения
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment