Fix for dashboard chart off by one

This commit is contained in:
Hillel Coren 2017-04-02 11:08:12 +03:00
parent 96b7134e66
commit b7cd7c9bff

View File

@ -74,7 +74,7 @@ class DashboardRepository
$records[] = isset($data[$date]) ? $data[$date] : 0; $records[] = isset($data[$date]) ? $data[$date] : 0;
if ($entityType == ENTITY_INVOICE) { if ($entityType == ENTITY_INVOICE) {
$labels[] = $d->format('r'); $labels[] = $d->format('m/d/Y');
} }
} }