TextField::getSeparator

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. TextField
  4. getSeparator
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/merger/conflictresolver/textfield.php
  • Класс: Bitrix\Crm\Merger\ConflictResolver\TextField
  • Вызов: TextField::getSeparator
protected function getSeparator(): string
{
	$newLine = $this->getNewLine();
	$context = \Bitrix\Main\Application::getInstance()->getContext();
	$culture = $context ? $context->getCulture() : null;
	if ($culture)
	{
		$date = new DateTime();
		$date->toUserTime();
		$dateStr = $date->format($culture->getShortDateFormat() . ' ' . $culture->getShortTimeFormat());
	}
	else
	{
		$dateStr = (new DateTime())->toString();
	}
	return $newLine . $newLine . ' ----- ' . $dateStr . ' -----' . $newLine;
}

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