Skip to content
New issue

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

update_time does not seem to update time #22

Open
alphydan opened this issue Jul 15, 2020 · 1 comment
Open

update_time does not seem to update time #22

alphydan opened this issue Jul 15, 2020 · 1 comment
Assignees
Labels

Comments

@alphydan
Copy link

I am trying to update the time of posts following the documentation, but the interface shows no change in time.
For example, iterating over some rows row:

dt_obj = datetime.datetime.strptime(row['dt'], "%Y-%m-%d %H:%M:%S %Z")

bookmark = pb.posts.get(url = row['url'])['posts'][0]
print(bookmark, bookmark.time) # -> shows 2020-07-15 19:00:50

bookmark.time = dt_obj
print(bookmark.time) # -> shows 2016-09-19 03:44:42

bookmark.save(update_time=True)

But the website still says created 15min ago. Thank you for any pointers and for making the wrapper.

@dlo dlo self-assigned this Oct 30, 2020
@dlo dlo added the bug label Oct 30, 2020
@boscoh
Copy link

boscoh commented Nov 23, 2020

I've had a similar problem trying to fix the times from an instapaper-exports.csv import.

I noticed that the source doesn't convert the datetime back into a ISO-javascript timestring. I tried this, but it too does not seem to have an effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants