aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-17 20:50:23 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-17 20:50:23 +0200
commitec0194c643d1a59cae8a6c8137f382db8fb4e0aa (patch)
tree166f8191c1746d74c10209d4cf3065da7e9992b7 /mastodon/Mastodon.py
parent3ed1cf73999ceef24ea3bf8395855bdde3876573 (diff)
downloadmastodon.py-ec0194c643d1a59cae8a6c8137f382db8fb4e0aa.tar.gz
Add additional date based tests
Diffstat (limited to 'mastodon/Mastodon.py')
-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)