fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes
[wolnelektury.git]
/
src
/
social
/
syncable.py
diff --git
a/src/social/syncable.py
b/src/social/syncable.py
index
6447f34
..
b86e2fd
100644
(file)
--- 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:
class Syncable:
@@
-9,7
+9,7
@@
class Syncable:
if ts is None:
ts = now()
else:
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:
if instance is not None:
if ts and ts < instance.reported_timestamp: