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:
1 parent
179fb9c39c
commit
3726448541
1 file changed
+1
-1
@@ -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