EventBuilderFromEntityObject::getOriginalDate

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventBuilderFromEntityObject
  4. getOriginalDate
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilderfromentityobject.php
  • Класс: BitrixCalendarCoreBuildersEventBuilderFromEntityObject
  • Вызов: EventBuilderFromEntityObject::getOriginalDate
protected function getOriginalDate(): ?Date
{
	if (empty($this->event->getOriginalDateFrom()))
	{
		return null;
	}

	return new Date(Util::getDateObject(
		$this->event->getOriginalDateFrom()->format(BitrixMainTypeDate::convertFormatToPhp(FORMAT_DATETIME)),
		false,
		$this->getStartTimezone() ? $this->getStartTimezone()->getTimeZone()->getName() : null
	));
}

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