src/extensions/SiteConfigExtension.php 1 location
|
@@ 90-99 (lines=10) @@
|
| 87 |
|
* @return DBDatetime|static |
| 88 |
|
* @throws \Exception |
| 89 |
|
*/ |
| 90 |
|
protected function getTomorrow() |
| 91 |
|
{ |
| 92 |
|
$dateTime = new DateTime(DBDatetime::now()); |
| 93 |
|
$interval = new DateInterval('P1D'); |
| 94 |
|
$tomorrow = $dateTime->add($interval); |
| 95 |
|
$dbDateTime = DBDatetime::create(); |
| 96 |
|
$dbDateTime->setValue($tomorrow->format('Y-m-d 00:00:00')); |
| 97 |
|
|
| 98 |
|
return $dbDateTime; |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
|
src/jobs/PartialSubmissionJob.php 1 location
|
@@ 246-255 (lines=10) @@
|
| 243 |
|
* @return DBDatetime|static |
| 244 |
|
* @throws \Exception |
| 245 |
|
*/ |
| 246 |
|
protected function getTomorrow() |
| 247 |
|
{ |
| 248 |
|
$dateTime = new DateTime(DBDatetime::now()); |
| 249 |
|
$interval = new DateInterval('P1D'); |
| 250 |
|
$tomorrow = $dateTime->add($interval); |
| 251 |
|
$dbDateTime = DBDatetime::create(); |
| 252 |
|
$dbDateTime->setValue($tomorrow->format('Y-m-d 00:00:00')); |
| 253 |
|
|
| 254 |
|
return $dbDateTime; |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
/** |
| 258 |
|
* @return array |