• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/basetype/date.php
  • Класс: BitrixBizprocBaseTypeDate
  • Вызов: Date::formatValueAuthor
static function formatValueAuthor(FieldType $fieldType, $value)
{
	if ($value instanceof ValueDate)
	{
		$documentId = $fieldType->getDocumentId();

		if ($documentId)
		{
			$userId = CBPHelper::ExtractUsers(['author', 'responsible'], $documentId, true);
			$offset = $userId ? CTimeZone::GetOffset($userId, true) : 0;

			$value = new ValueDateTime($value->getTimestamp(), $offset);
		}

		return (string) $value;
	}

	return $value;
}