From fb6dee0fcc49128732db1b6a39e313dacb18b734 Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Fri, 7 Apr 2023 12:46:21 +0200 Subject: [PATCH] [TASK] add day of week --- README.md | 2 +- templates/index.html.tera | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 094cf79..c54917b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - [ ] Allow sign-outs only >2h before event # Notes / Bugfixes - +[] enable date-locale support for tera templating https://tera.netlify.app/docs/#date # Frontend Process ´cd frontend´ ´npm install´ diff --git a/templates/index.html.tera b/templates/index.html.tera index dd7b0e3..29e391b 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -27,7 +27,7 @@ {% set amount_trips = day.planned_events | length + day.trips | length %}
-

{{ day.day| date(format="%d.%m.%Y") }}

+

{{ day.day| date(format="%d.%m.%Y") }} {{ day.day| date(format="%A", locale="de_DE") }}

{% if day.planned_events | length > 0 %}