aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 7b99dfd..2ce266b 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -3926,7 +3926,7 @@ class Mastodon:
3926 if isinstance(id, dict) and "id" in id: 3926 if isinstance(id, dict) and "id" in id:
3927 id = id["id"] 3927 id = id["id"]
3928 if dateconv and isinstance(id, datetime.datetime): 3928 if dateconv and isinstance(id, datetime.datetime):
3929 id = (int(id) << 16) * 1000 3929 id = (int(id.timestamp()) << 16) * 1000
3930 return id 3930 return id
3931 3931
3932 def __decode_webpush_b64(self, data): 3932 def __decode_webpush_b64(self, data):
Powered by cgit v1.2.3 (git 2.41.0)