framework icon indicating copy to clipboard operation
framework copied to clipboard

[10.x] Accounting for timezone when calculating lastDayOfTheMonth

Open tntsoft opened this issue 2 years ago • 2 comments

This is a hotfix for #49211

This is a draft as a Test needs to be written in tests/Console/Scheduling/FrequencyTest.php.

tntsoft avatar Dec 09 '23 15:12 tntsoft

Given the following:

$schedule->command(ExampleCommand::class)->lastDayOfMonth('23:30');

Should it run the schedule at 23:30 (UTC) or 23:30 (Local)?

crynobone avatar Dec 13 '23 15:12 crynobone

@crynobone I believe it should schedule at 23:30 application timezone. So if the config is set to UTC, then it should fire on UTC - from my understanding at least.

tntsoft avatar Dec 13 '23 17:12 tntsoft

Closing because of inactivity.

driesvints avatar Mar 05 '24 13:03 driesvints