mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed usage not shown for first day of the month
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user