From a5668ef729586567b6d85b17a23d1b7e13fd11f4 Mon Sep 17 00:00:00 2001 From: Sean Scott <3287046+oraclesean@users.noreply.github.com> Date: Sun, 2 Jan 2022 11:35:29 -0700 Subject: [PATCH] Update forecast.njk Add an absolute date option to the weather module's forecast. --- modules/default/weather/forecast.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/default/weather/forecast.njk b/modules/default/weather/forecast.njk index 32a2e4a6..2bac7eae 100644 --- a/modules/default/weather/forecast.njk +++ b/modules/default/weather/forecast.njk @@ -8,9 +8,9 @@ {% set forecast = forecast.slice(0, numSteps) %} {% for f in forecast %} - {% if (currentStep == 0) and config.ignoreToday == false %} + {% if (currentStep == 0) and config.ignoreToday == false and config.absoluteDates == false %} {{ "TODAY" | translate }} - {% elif (currentStep == 1) and config.ignoreToday == false %} + {% elif (currentStep == 1) and config.ignoreToday == false and config.absoluteDates == false %} {{ "TOMORROW" | translate }} {% else %} {{ f.date.format('ddd') }}