• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/prop_datetime.php
  • Класс: CIBlockPropertyDateTime
  • Вызов: CIBlockPropertyDateTime::CheckFields
static function CheckFields($arProperty, $value)
{
	$arResult = [];
	$dateTimeValue = (string)($value["VALUE"] ?? '');
	if ($dateTimeValue !== '')
	{
		if (
			!CheckDateTime($dateTimeValue)
			&& !static::checkInternalFormatValue($dateTimeValue)
		)
		{
			$arResult[] = Loc::getMessage(
				'IBLOCK_PROP_DATETIME_ERROR_NEW',
				[
					'#FIELD_NAME#' => $arProperty['NAME'],
				]
			);
		}
	}

	return $arResult;
}