From 0655a7cad165e6431ce6e7c7e306469f9c8ca6f5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 24 Apr 2023 11:52:08 +0200 Subject: [PATCH] PDF: Fix valid_from_time placeholder --- src/pretix/base/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/pdf.py b/src/pretix/base/pdf.py index efa9442ea..c243c6d05 100644 --- a/src/pretix/base/pdf.py +++ b/src/pretix/base/pdf.py @@ -411,7 +411,7 @@ DEFAULT_VARIABLES = OrderedDict(( "label": _("Validity start date"), "editor_sample": _("2017-05-31"), "evaluate": lambda op, order, ev: date_format( - now().astimezone(timezone(ev.settings.timezone)), + op.valid_from.astimezone(timezone(ev.settings.timezone)), "SHORT_DATE_FORMAT" ) if op.valid_from else "" }),