We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8fc57 commit c248432Copy full SHA for c248432
Classes/Command/ExportCommand.php
@@ -19,11 +19,16 @@
19
*/
20
class ExportCommand extends Command
21
{
22
+
23
+ use FakeRequestTrait;
24
25
/**
26
* @return void
27
28
public function configure()
29
30
+ $this->fakeRequest();
31
32
$description =
33
'This task can send a mail export with an attachment (XLS or CSV) to a receiver or a group of receivers';
34
$this->setDescription($description);
@@ -104,7 +109,7 @@ protected function getFilterVariables(int $period): array
104
109
if ($period > 0) {
105
110
$variables = [
106
111
'filter' => [
107
- 'start' => strftime('%Y-%m-%d %H:%M:%S', (time() - $period)),
112
+ 'start' => date('Y-m-d H:i:s', (time() - $period)),
108
113
'stop' => 'now',
114
],
115
];
0 commit comments