• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
  • Класс: BitrixCalendarUtil
  • Вызов: Util::formatDateTimeTimestamp
static function formatDateTimeTimestamp(int $timestamp, string $timezoneName): string
{
	$timezone = new DateTimeZone($timezoneName);
	$dateTimeFormat = Date::convertFormatToPhp(FORMAT_DATETIME);

	return (new DateTime('now', $timezone))
		->setTimestamp($timestamp)
		->format($dateTimeFormat)
	;
}