From 8eded63055d0783ea0c7361c171f328c27b1ee06 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 2 Dec 2017 06:42:00 +0100 Subject: [PATCH] Fix for #1028 --- resources/views/index.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ {% if start.lte(today) and end.gte(today) %} - var today = {{ today.day }}; + var today = {{ today.diffInDays(start) + 1 }}; {% else %} var today = -1; {% endif %}