Add "Event date" to PDF editors

This commit is contained in:
Raphael Michel
2018-11-14 14:39:20 +01:00
parent 138ddcdcd7
commit abdb6e2d52

View File

@@ -118,6 +118,14 @@ DEFAULT_VARIABLES = OrderedDict((
"SHORT_DATETIME_FORMAT"
) if ev.date_to else ""
}),
("event_end_date", {
"label": _("Event end date"),
"editor_sample": _("2017-05-31"),
"evaluate": lambda op, order, ev: date_format(
ev.date_to.astimezone(timezone(ev.settings.timezone)),
"SHORT_DATE_FORMAT"
) if ev.date_to else ""
}),
("event_end_time", {
"label": _("Event end time"),
"editor_sample": _("22:00"),