From 5c2a0e5634f73c7e0adb402fef85022f66117559 Mon Sep 17 00:00:00 2001
From: Kristjan SCHMIDT <35647502+KristjanESPERANTO@users.noreply.github.com>
Date: Sun, 11 Apr 2021 22:25:15 +0200
Subject: [PATCH 1/2] Fix decimalSymbol for forcast
---
CHANGELOG.md | 1 +
modules/default/weather/forecast.njk | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f49e8001..d4f69eda 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ _This release is scheduled to be released on 2021-04-01._
- Fix calendar start function logging inconsistency.
- Fix updatenotification start function logging inconsistency.
- Checks and applies the showDescription setting for the newsfeed module again
+- Fix decimalSymbol in the forcast part of the new weather module #2530
## [2.15.0] - 2021-04-01
diff --git a/modules/default/weather/forecast.njk b/modules/default/weather/forecast.njk
index 8fa04298..b8e9a29a 100644
--- a/modules/default/weather/forecast.njk
+++ b/modules/default/weather/forecast.njk
@@ -14,10 +14,10 @@
{% endif %}
|
- {{ f.maxTemperature | roundValue | unit("temperature") }}
+ {{ f.maxTemperature | roundValue | decimalSymbol | unit("temperature") }}
|
- {{ f.minTemperature | roundValue | unit("temperature") }}
+ {{ f.minTemperature | roundValue | decimalSymbol | unit("temperature") }}
|
{% if config.showPrecipitationAmount %}
From 9c584132097202f0c7616e7819a653797dede242 Mon Sep 17 00:00:00 2001
From: Kristjan SCHMIDT <35647502+KristjanESPERANTO@users.noreply.github.com>
Date: Mon, 12 Apr 2021 18:34:33 +0200
Subject: [PATCH 2/2] Put decimalSymbol at the end of the row like in the
Current part
---
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 b8e9a29a..c78e89ed 100644
--- a/modules/default/weather/forecast.njk
+++ b/modules/default/weather/forecast.njk
@@ -14,10 +14,10 @@
{% endif %}
| |
- {{ f.maxTemperature | roundValue | decimalSymbol | unit("temperature") }}
+ {{ f.maxTemperature | roundValue | unit("temperature") | decimalSymbol }}
|
- {{ f.minTemperature | roundValue | decimalSymbol | unit("temperature") }}
+ {{ f.minTemperature | roundValue | unit("temperature") | decimalSymbol }}
|
{% if config.showPrecipitationAmount %}
|