From 0a5f3e6dd56802490677abd9c482474bba9d1f84 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 13 Aug 2024 12:52:14 +0200 Subject: [PATCH] Fix availability of payment methods in time machine (Z#23162163) (#4390) --- src/pretix/base/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/payment.py b/src/pretix/base/payment.py index 2f4148879a..7e9c9611cc 100644 --- a/src/pretix/base/payment.py +++ b/src/pretix/base/payment.py @@ -587,7 +587,7 @@ class BasePaymentProvider: return rel_date.datetime(self.event).date() def _is_available_by_time(self, now_dt=None, cart_id=None, order=None): - now_dt = now_dt or now() + now_dt = now_dt or time_machine_now() tz = ZoneInfo(self.event.settings.timezone) try: