Fixed usage not shown for first day of the month
This commit is contained in:
parent
179fb9c39c
commit
3726448541
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ $utopia->get('/v1/projects/:projectId/usage')
|
|||
$network = [];
|
||||
|
||||
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);
|
||||
$end = DateTime::createFromFormat('U', strtotime('last day of this month'));
|
||||
$end = $end->format(DateTime::RFC3339);
|
||||
|
|
Loading…
Reference in a new issue