X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/078017198692badda854eb70f7a5431112aed007..8a3885e1467e4c441721eaae608755a9fd10b33f:/src/social/syncable.py diff --git a/src/social/syncable.py b/src/social/syncable.py index 789cdf840..b86e2fd1a 100644 --- a/src/social/syncable.py +++ b/src/social/syncable.py @@ -1,7 +1,5 @@ -from datetime import datetime +from datetime import datetime, timezone from django.utils.timezone import now -from pytz import utc - class Syncable: @@ -11,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: