portal.mkgtu.ru/common/services/abiturientController/questionary/InitializationQuestionarySe...

24 lines
470 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\services\abiturientController\questionary;
class InitializationQuestionaryService extends AbiturientQuestionaryService
{
public function checkTimeZone(): bool
{
$timeZoneLocal = date_default_timezone_get();
$timeZoneGlobal = ini_get('date.timezone');
if (strcmp($timeZoneLocal, $timeZoneGlobal) || strlen((string)$timeZoneGlobal) < 1) {
return true;
}
return false;
}
}