From f826bcf7fe66fb5274ceac04473f010136e7163c Mon Sep 17 00:00:00 2001 From: "jtbx (Jannik)" Date: Sat, 4 Nov 2023 19:43:29 +0000 Subject: [PATCH] CI: Set timezone to Europe/Berlin Evaluation of the ical data uses the local time when formating the output string as the input data uses UTC. --- .gitlab-ci.yml | 3 +++ themes/ccchh/layouts/shortcodes/calendar-table.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 784a83c..fb1046a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +variables: + TZ: Europe/Berlin + stages: - build - deploy diff --git a/themes/ccchh/layouts/shortcodes/calendar-table.html b/themes/ccchh/layouts/shortcodes/calendar-table.html index 50bd2d4..9de76d1 100644 --- a/themes/ccchh/layouts/shortcodes/calendar-table.html +++ b/themes/ccchh/layouts/shortcodes/calendar-table.html @@ -12,7 +12,7 @@ {{- if eq ._type "vevent"}} {{- $start := time .dtstart }} - {{ $start.Local | time.Format "Mon, 2006-01-02 15:04" }} + {{ $start.Local.Format "Mon, 2006-01-02 15:04" }} {{ .summary }} {{ .location }}