X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fd1a9915dd65789cccf27041a1f01cd4077273fc..88eef14f0c0353b5b1c56bf8cf32c47a9e0fa1a0:/src/club/payment_methods.py?ds=inline

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()