From c86673f3ec8ba0b96f79c9c35eaec6634229a21e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 26 Jul 2020 14:37:45 +0200 Subject: [PATCH] Trim the label. --- app/Support/Http/Controllers/ChartGeneration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Http/Controllers/ChartGeneration.php b/app/Support/Http/Controllers/ChartGeneration.php index 9f708d2052..d59d7c2e6d 100644 --- a/app/Support/Http/Controllers/ChartGeneration.php +++ b/app/Support/Http/Controllers/ChartGeneration.php @@ -90,7 +90,7 @@ trait ChartGeneration $previous = array_values($range)[0]; while ($currentStart <= $end) { $format = $currentStart->format('Y-m-d'); - $label = $currentStart->formatLocalized((string)trans('config.month_and_day', [], $locale)); + $label = trim($currentStart->formatLocalized((string)trans('config.month_and_day', [], $locale))); $balance = isset($range[$format]) ? round($range[$format], 12) : $previous; $previous = $balance; $currentStart->addDay();