X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fd1a9915dd65789cccf27041a1f01cd4077273fc..fd8cd1a9e08a5b31819da53d96a6775d31c20748:/src/club/payment_methods.py?ds=sidebyside 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()