PDF: Fix valid_from_time placeholder

This commit is contained in:
Raphael Michel
2023-04-24 11:52:08 +02:00
parent 788757b7f0
commit 0655a7cad1

View File

@@ -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 ""
}),