Fix availability of payment methods in time machine (Z#23162163) (#4390)

This commit is contained in:
Raphael Michel
2024-08-13 12:52:14 +02:00
committed by GitHub
parent 446d24553e
commit 0a5f3e6dd5

View File

@@ -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: