could::setEndDatePlanUserTimeGmt

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. could
  4. setEndDatePlanUserTimeGmt
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/processor/task/scheduler/result/impact.php
  • Класс: BitrixTasksProcessorTaskSchedulerResultcould
  • Вызов: could::setEndDatePlanUserTimeGmt
public function setEndDatePlanUserTimeGmt($timeString, $preInit = true)
{
	if($preInit)
	{
		$this->getDataPristine(); // ensure that pristine data will be separated BEFORE anything changes
	}

	if ((string) $timeString == '')
	{
		$this->endDatePlanGmt = null;
		$this->data['END_DATE_PLAN'] = null;
	}
	else
	{
		$this->endDatePlanGmt = DateTime::createFromUserTimeGmt($timeString);
		$this->data['END_DATE_PLAN'] = DateTime::createFromUserTime($timeString);
	}
}

Добавить комментарий