Fix date format for usage APIs

This commit is contained in:
Steven Nguyen
2022-09-15 23:48:09 +00:00
parent 9893bc166a
commit 00a4929301
6 changed files with 71 additions and 10 deletions
+1 -1
View File
@@ -330,7 +330,7 @@ App::get('/v1/projects/:projectId/usage')
};
$stats[$metric][] = [
'value' => 0,
'date' => DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff),
'date' => DateTime::formatTz(DateTime::addSeconds(new \DateTime($stats[$metric][$last]['date'] ?? null), -1 * $diff)),
];
$backfill--;
}