diff --git a/src/pretix/base/invoicing/pdf.py b/src/pretix/base/invoicing/pdf.py
index cc279e65a5..182b2b3f4c 100644
--- a/src/pretix/base/invoicing/pdf.py
+++ b/src/pretix/base/invoicing/pdf.py
@@ -533,7 +533,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
self.invoice.event.date_to.astimezone(tz).date() != self.invoice.event.date_from.astimezone(tz).date()
)
if show_end_date:
- return self.invoice.event.date_from.astimezone(tz).date(), self.invoice.event.date_to.astimezone(tz).date
+ return self.invoice.event.date_from.astimezone(tz).date(), self.invoice.event.date_to.astimezone(tz).date()
else:
return self.invoice.event.date_from.astimezone(tz).date(), None
@@ -741,7 +741,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
period_line = ""
else:
- period_line = f"\n{date_format(day(period_start), 'SHORT_DATE_FORMAT')} – {date_format(day(period_end), 'SHORT_END_FORMAT')}"
+ period_line = f"\n{date_format(day(period_start), 'SHORT_DATE_FORMAT')} – {date_format(day(period_end), 'SHORT_DATE_FORMAT')}"
elif period_start or period_end:
# It's a single-day period
@@ -765,7 +765,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
period_line = ""
else:
- period_line = f"\n{date_format(day(delivery_day), 'SHORT_DATE_FORMAT')}"
+ period_line = f"\n{date_format(delivery_day, 'SHORT_DATE_FORMAT')}"
else:
# No period known
period_line = ""
diff --git a/src/tests/base/test_invoices.py b/src/tests/base/test_invoices.py
index 2ce90e440c..b50a98f806 100644
--- a/src/tests/base/test_invoices.py
+++ b/src/tests/base/test_invoices.py
@@ -19,6 +19,7 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# .
#
+
# This file is based on an earlier version of pretix which was released under the Apache License 2.0. The full text of
# the Apache License 2.0 can be obtained at .
#