mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
PDF: Fix valid_from_time placeholder
This commit is contained in:
@@ -411,7 +411,7 @@ DEFAULT_VARIABLES = OrderedDict((
|
|||||||
"label": _("Validity start date"),
|
"label": _("Validity start date"),
|
||||||
"editor_sample": _("2017-05-31"),
|
"editor_sample": _("2017-05-31"),
|
||||||
"evaluate": lambda op, order, ev: date_format(
|
"evaluate": lambda op, order, ev: date_format(
|
||||||
now().astimezone(timezone(ev.settings.timezone)),
|
op.valid_from.astimezone(timezone(ev.settings.timezone)),
|
||||||
"SHORT_DATE_FORMAT"
|
"SHORT_DATE_FORMAT"
|
||||||
) if op.valid_from else ""
|
) if op.valid_from else ""
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user