From ec0194c643d1a59cae8a6c8137f382db8fb4e0aa Mon Sep 17 00:00:00 2001 From: halcy Date: Thu, 17 Nov 2022 20:50:23 +0200 Subject: Add additional date based tests --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') 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: if isinstance(id, dict) and "id" in id: id = id["id"] if dateconv and isinstance(id, datetime.datetime): - id = (int(id) << 16) * 1000 + id = (int(id.timestamp()) << 16) * 1000 return id def __decode_webpush_b64(self, data): -- cgit v1.2.3