• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/controller/base.php
  • Класс: BitrixRpaControllerBase
  • Вызов: Base::prepareDateTimeValue
protected function prepareDateTimeValue(DateTime $dateTime): string
{
	if ($this->getScope() === Scope::REST)
	{
		return CRestUtil::ConvertDateTime($dateTime);
	}

	return $dateTime->format(DateTime::getFormat());
}