54421 В планировщике заданий moderator со временем новые задания уползают с графика
This commit is contained in:
		@@ -108,7 +108,7 @@ class MoleTask extends \yii\db\ActiveRecord
 | 
				
			|||||||
            $model->completed = 0;
 | 
					            $model->completed = 0;
 | 
				
			||||||
            $model->dateStart = null;
 | 
					            $model->dateStart = null;
 | 
				
			||||||
            $model->dateEnd = 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();
 | 
					            $model->save();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user