Fix date format for usage APIs

This commit is contained in:
Steven Nguyen committed 2022-09-15 23:48:09 +00:00
1 parent 9893bc166a
commit 00a4929301
6 files changed
+71 -10

No files matched your search

+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--;
}