From 0da2b12646e4059c33c307162cbe048a73fe7312 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 30 Aug 2021 12:44:11 +0200 Subject: [PATCH] Check-in log exporter: Expose upload time --- src/pretix/plugins/checkinlists/exporters.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pretix/plugins/checkinlists/exporters.py b/src/pretix/plugins/checkinlists/exporters.py index 8cad980956..23e85316be 100644 --- a/src/pretix/plugins/checkinlists/exporters.py +++ b/src/pretix/plugins/checkinlists/exporters.py @@ -619,6 +619,8 @@ class CheckinLogList(ListExporter): _('Gate'), _('Result'), _('Error message'), + _('Upload date'), + _('Upload time'), ] qs = Checkin.all.filter( @@ -662,7 +664,9 @@ class CheckinLogList(ListExporter): _('Yes') if ci.auto_checked_in else _('No'), str(ci.gate or ''), _('OK') if ci.successful else ci.get_error_reason_display(), - ci.error_explanation or '' + ci.error_explanation or '', + date_format(ci.created.astimezone(self.timezone), 'SHORT_DATE_FORMAT'), + date_format(ci.created.astimezone(self.timezone), 'TIME_FORMAT'), ] def get_filename(self):