• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/replicator/template/conversion/converters/datetimeconverter.php
  • Класс: BitrixTasksReplicatorTemplateConversionConvertersDateTimeConverter
  • Вызов: DateTimeConverter::convert
public function convert(Repository $repository): array
{
	$taskFields = [];
	$template = $repository->getTemplate();
	if($template->getDeadlineAfter() > 0)
	{
		$taskFields['DEADLINE'] = $this->getNewDate($template->getDeadlineAfter(), $template->getMatchWorkTime());
	}

	if($template->getStartDatePlanAfter() > 0)
	{
		$taskFields['START_DATE_PLAN'] = $this->getNewDate($template->getStartDatePlanAfter(), $template->getMatchWorkTime());
	}

	if($template->getEndDatePlanAfter() > 0)
	{
		$taskFields['END_DATE_PLAN'] = $this->getNewDate($template->getEndDatePlanAfter(), $template->getMatchWorkTime());
	}

	return $taskFields;
}