Skip to content

Firefly III: a personal finances manager

Trim the label.

James Colec86673f3ec8b
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();