Impact::getEndDatePlanGmt

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Impact
  4. getEndDatePlanGmt
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/processor/task/scheduler/result/impact.php
  • Класс: BitrixTasksProcessorTaskSchedulerResultImpact
  • Вызов: Impact::getEndDatePlanGmt
public function getEndDatePlanGmt()
{
	if ((string)($this->data['END_DATE_PLAN'] ?? null) === '')
	{
		return null;
	}

	if ($this->endDatePlanGmt === null)
	{
		$date = $this->data['END_DATE_PLAN'];

		if ($date instanceof DateTime)
		{
			$date = $date->toString();
		}

		$this->endDatePlanGmt = DateTime::createFromUserTimeGmt($date); // string or object allowed here
	}

	return clone $this->endDatePlanGmt;
}

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