• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sharing/crm/notifymanager.php
  • Класс: BitrixCalendarSharingCrmNotifyManager
  • Вызов: NotifyManager::prepareTimestamp
private function prepareTimestamp($timestamp)
{
	$result = $timestamp;

	if ($this->notifyType === self::NOTIFY_TYPE_NOT_VIEWED || $this->notifyType === self::NOTIFY_TYPE_VIEWED)
	{
		$result = $this->link->getDateCreate() ? $this->link->getDateCreate()->getTimestamp() : null;
	}

	if (!$result)
	{
		$result = (new DateTime())->getTimestamp();
	}

	return $result;
}