Skip to content

Firefly III: a personal finances manager

Fix for #1028

James Cole8eded63055d0
diff --git a/resources/views/index.twig b/resources/views/index.twig
index 4932d04e42..dd0872325d 100644
--- a/resources/views/index.twig
+++ b/resources/views/index.twig
@@ -146,7 +146,7 @@
<!-- render vertical line with text "today" -->
{% if start.lte(today) and end.gte(today) %}
- var today = {{ today.day }};
+ var today = {{ today.diffInDays(start) + 1 }};
{% else %}
var today = -1;
{% endif %}