1
0
Fork 0

Make daily cronjobs run at midnight

master release/2.1.1
Anonymous Contributor 2023-09-15 19:20:06 +02:00
parent 36ef1c5721
commit 685853a9f9
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ abstract class CronJob {
break;
case Frequency::DAILY:
$res->add(DateInterval::createFromDateString('1 day'));
$res->setTime(0, 0, 0);
break;
case Frequency::WEEKLY:
$res->add(DateInterval::createFromDateString('1 week'));