Answer the question
In order to leave comments, you need to log in
How to specify date_default_timezone_set in Symfony?
I have Symfony 5
I call a function date_default_timezone_set()
in Kernel.php:
public function __construct(string $environment, bool $debug)
{
// часовой пояс по умолчанию
date_default_timezone_set('UTC');
parent::__construct($environment, $debug);
}
public function __construct(string $environment, bool $debug)
{
// часовой пояс по умолчанию
date_default_timezone_set('тут указать ключ из env');
parent::__construct($environment, $debug);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question