From 35fb20fe76dfb51309071d664d1d2aaa3cac60f8 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 14 Feb 2023 11:01:54 +0100 Subject: [PATCH] Fix PDF variable for validity end date --- 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 bb08e7838..aece9a6e5 100644 --- a/src/pretix/base/pdf.py +++ b/src/pretix/base/pdf.py @@ -435,7 +435,7 @@ DEFAULT_VARIABLES = OrderedDict(( "label": _("Validity end date"), "editor_sample": _("2017-05-31"), "evaluate": lambda op, order, ev: date_format( - now().astimezone(timezone(ev.settings.timezone)), + op.valid_until.astimezone(timezone(ev.settings.timezone)), "SHORT_DATE_FORMAT" ) if op.valid_until else "" }),