From 2ced1489eba3004df087560b82521cf20631ac1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 15 Jan 2019 15:38:17 +0100 Subject: [PATCH] xmas: fix isCurrent check --- xmas.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmas.json b/xmas.json index 2baa128..8da2b52 100644 --- a/xmas.json +++ b/xmas.json @@ -18,7 +18,7 @@ }, "feature": { "pre": [ - "{% set isCurrent = meta.timestamp > now|date_modify('-1 month')|date('Y') %}", + "{% set isCurrent = meta.timestamp >= \"now\"|date_modify('-10 month')|date('Y') %}", "{% set bgColor = isCurrent ? '#f2756a' : 'red' %}" ], "title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}",