X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/32e632734c0a8390775bb8661edc78c2045cf5f3..111a23185d6f47f692540fb145dc5604c47aee67:/src/social/syncable.py diff --git a/src/social/syncable.py b/src/social/syncable.py index 6447f344b..b86e2fd1a 100644 --- a/src/social/syncable.py +++ b/src/social/syncable.py @@ -1,5 +1,5 @@ -from datetime import datetime -from django.utils.timezone import now, utc +from datetime import datetime, timezone +from django.utils.timezone import now class Syncable: @@ -9,7 +9,7 @@ class Syncable: if ts is None: ts = now() else: - ts = datetime.fromtimestamp(ts, tz=utc) + ts = datetime.fromtimestamp(ts, tz=timezone.utc) if instance is not None: if ts and ts < instance.reported_timestamp: