• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/time.php
  • Класс: CTimeZone
  • Вызов: CTimeZone::GetCookieValue
static function GetCookieValue()
{
	static $cookie_prefix = null;
	if($cookie_prefix === null)
	{
		$cookie_prefix = COption::GetOptionString('main', 'cookie_name', 'BITRIX_SM');
	}

	if(isset($_COOKIE[$cookie_prefix."_TIME_ZONE"])	&& $_COOKIE[$cookie_prefix."_TIME_ZONE"] <> '')
	{
		return intval($_COOKIE[$cookie_prefix."_TIME_ZONE"]);
	}

	return null;
}