16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
if (!$account) {
throw new UserException("Le compte demandé n'existe pas.");
}
$start = new \DateTime('first day of this month');
$end = new \DateTime('last day of this month');
$only = (bool) qg('only');
if (null !== qg('start') && null !== qg('end'))
{
$start = \DateTime::createFromFormat('!d/m/Y', qg('start'));
$end = \DateTime::createFromFormat('!d/m/Y', qg('end'));
|
>
>
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
if (!$account) {
throw new UserException("Le compte demandé n'existe pas.");
}
$start = new \DateTime('first day of this month');
$end = new \DateTime('last day of this month');
$start->setTime(0, 0, 0);
$end->setTime(0, 0, 0);
$only = (bool) qg('only');
if (null !== qg('start') && null !== qg('end'))
{
$start = \DateTime::createFromFormat('!d/m/Y', qg('start'));
$end = \DateTime::createFromFormat('!d/m/Y', qg('end'));
|