fix: make Christmas season end on 1/1 instead of 12/31
This commit is contained in:
@@ -18,7 +18,7 @@ template:
|
||||
{% set xmas_start = as_datetime('%.4d-11-%.2d'|format(now().year, 22 + (3 - as_datetime(now().year|string + '-11-01').weekday()) % 7 + 1))|as_local %}
|
||||
{% set xmas_end = as_datetime('%.4d-01-01'|format(now().year + 1))|as_local %}
|
||||
{% set today = today_at('00:00') %}
|
||||
{{ xmas_start <= today and today < xmas_end }}
|
||||
{{ xmas_start <= today and today <= xmas_end }}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Holiday Groups
|
||||
|
||||
Reference in New Issue
Block a user