From 923acb86f18474474ff7411768a169b77e50db62 Mon Sep 17 00:00:00 2001 From: Sasha Rybkin Date: Fri, 15 Jan 2021 13:20:39 +0300 Subject: [PATCH] =?UTF-8?q?54421=20=D0=92=20=D0=BF=D0=BB=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D1=89=D0=B8=D0=BA=D0=B5=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B9=20moderator=20=D1=81=D0=BE=20=D0=B2?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=B5=D0=BC=20=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D1=83=D0=BF=D0=BE=D0=BB=D0=B7=D0=B0=D1=8E=D1=82=20=D1=81=20?= =?UTF-8?q?=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/MoleTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/MoleTask.php b/models/MoleTask.php index f32dc20..c66f121 100644 --- a/models/MoleTask.php +++ b/models/MoleTask.php @@ -108,7 +108,7 @@ class MoleTask extends \yii\db\ActiveRecord $model->completed = 0; $model->dateStart = null; $model->dateEnd = null; - $model->dateAdd = date('Y-m-d H:i:s', (strtotime("+$this->period seconds"))); + $model->dateAdd = date('Y-m-d H:i:s', (strtotime($this->dateAdd . " +$this->period seconds"))); $model->save(); } }