We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am in Central Daylight Time, GMT-5. When calling send_image, it appears in my timeline 5 hours in the past.
send_image
send_image calls send_post. It looks like the cause for this bug is in send_post:
send_post
atproto/atproto/xrpc_client/client/client.py
Line 120 in 2bdb5b0
in which it calls datetime.now().isoformat(). now() returns the local time zone; atproto uses UTC.
datetime.now().isoformat()
now()
A fix would be to change line 2 to from datetime import datetime, timezone and line 120 to
from datetime import datetime, timezone
createdAt=datetime.now(timezone.utc).isoformat(), text=text, reply=reply_to, embed=embed, langs=langs
It looks like like and repost have the same issue, but could be fixed similarly.
like
repost
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I am in Central Daylight Time, GMT-5. When calling
send_image
, it appears in my timeline 5 hours in the past.send_image
callssend_post
. It looks like the cause for this bug is insend_post
:atproto/atproto/xrpc_client/client/client.py
Line 120 in 2bdb5b0
in which it calls
datetime.now().isoformat()
.now()
returns the local time zone; atproto uses UTC.A fix would be to change line 2 to
from datetime import datetime, timezone
and line 120 toIt looks like
like
andrepost
have the same issue, but could be fixed similarly.The text was updated successfully, but these errors were encountered: