W
W
WebDev2016-08-17 13:09:08
Laravel
WebDev, 2016-08-17 13:09:08

Laravel scheduler starts on time?

$schedule->command('command:MyCommand')->dailyAt('23:00');

Such a command is executed at 01:00 instead of 23:00. The timezone in php is set, in the console php -r "echo date('H:i')" gives the correct time. What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2016-08-17
@kirill-93

And what is in the laravel app.timezone config?
If you need something different from the config, you can specify it ->timezone(....)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question