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(); } }