Fixed usage not shown for first day of the month
This commit is contained in:
parent
179fb9c39c
commit
3726448541
|
@ -113,7 +113,7 @@ $utopia->get('/v1/projects/:projectId/usage')
|
||||||
$network = [];
|
$network = [];
|
||||||
|
|
||||||
if ($client) {
|
if ($client) {
|
||||||
$start = DateTime::createFromFormat('U', strtotime('first day of this month'));
|
$start = DateTime::createFromFormat('U', strtotime('last day of last month'));
|
||||||
$start = $start->format(DateTime::RFC3339);
|
$start = $start->format(DateTime::RFC3339);
|
||||||
$end = DateTime::createFromFormat('U', strtotime('last day of this month'));
|
$end = DateTime::createFromFormat('U', strtotime('last day of this month'));
|
||||||
$end = $end->format(DateTime::RFC3339);
|
$end = $end->format(DateTime::RFC3339);
|
||||||
|
|
Loading…
Reference in a new issue