From bca3d182ff378d82b4ceadad52a658678e87e981 Mon Sep 17 00:00:00 2001 From: Martin Gross Date: Wed, 26 Apr 2023 10:17:12 +0200 Subject: [PATCH] Respect TZ for op.valid_from/valid_until in Order Data Export --- src/pretix/base/exporters/orderlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/base/exporters/orderlist.py b/src/pretix/base/exporters/orderlist.py index 5b0401c7a7..e045dd90a0 100644 --- a/src/pretix/base/exporters/orderlist.py +++ b/src/pretix/base/exporters/orderlist.py @@ -688,8 +688,8 @@ class OrderListExporter(MultiSheetListExporter): row += [ _('Yes') if op.blocked else '', - date_format(op.valid_from, 'SHORT_DATETIME_FORMAT') if op.valid_from else '', - date_format(op.valid_until, 'SHORT_DATETIME_FORMAT') if op.valid_until else '', + date_format(op.valid_from.astimezone(tz), 'SHORT_DATETIME_FORMAT') if op.valid_from else '', + date_format(op.valid_until.astimezone(tz), 'SHORT_DATETIME_FORMAT') if op.valid_until else '', ] row.append(order.comment) row.append(order.custom_followup_at.strftime("%Y-%m-%d") if order.custom_followup_at else "")