1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

Fixed usage not shown for first day of the month

This commit is contained in:
eldadfux 2019-10-01 21:46:57 +03:00
parent 179fb9c39c
commit 3726448541

View file

@ -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);