• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/form/worktime/worktimeeventform.php
  • Класс: BitrixTimemanFormWorktimeWorktimeEventForm
  • Вызов: WorktimeEventForm::getRecordedDateTime
public function getRecordedDateTime()
{
	if ($this->recordedDateTime)
	{
		return $this->recordedDateTime;
	}

	if (!$this->recordedDate || !$this->recordedSeconds)
	{
		return null;
	}

	if (!$this->recordedDateTime)
	{
		$this->recordedDateTime = TimeHelper::getInstance()->createUserDateTimeFromFormat(
			'Y-m-d H:i',
			$this->recordedDate . ' ' . $this->recordedTime,
			$this->userId
		);
	}

	if ($this->recordedDateTime === false)
	{
		return null;
	}
	return $this->recordedDateTime;
}