X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fd1a9915dd65789cccf27041a1f01cd4077273fc..bde2a16ae2669bea94ec0f23c60213a26d4881f4:/src/club/payment_methods.py diff --git a/src/club/payment_methods.py b/src/club/payment_methods.py index 9fddff3ff..6bb6f8e67 100644 --- a/src/club/payment_methods.py +++ b/src/club/payment_methods.py @@ -159,9 +159,8 @@ class PayPal(PaymentMethod): return agreement_approval_url(schedule.amount, schedule.key, app=app) def pay(self, request, schedule): - from datetime import date, timedelta, datetime - from pytz import utc - tomorrow = datetime(*(date.today() + timedelta(2)).timetuple()[:3], tzinfo=utc) + from datetime import date, timedelta, datetime, timezone + tomorrow = datetime(*(date.today() + timedelta(2)).timetuple()[:3], tzinfo=timezone.utc) any_active = False for ba in schedule.billingagreement_set.all(): active = ba.check_agreement()