python-wordpress-xmlrpc icon indicating copy to clipboard operation
python-wordpress-xmlrpc copied to clipboard

Post date format

Open sweetopium opened this issue 9 years ago • 2 comments

What is correct publish date format? I tied use ISO, python datetime, 1994-11-05T08:15:30-05:00, any format, and only get 01.01.1970 date.

I have 100 posts and want to upload it as draft, and publish each with +1 hour.

1 post - at 2016-09-03 09:30 2 post - at 2016-09-03 10:30 3 post - at 2016-09-03 11:30

etc

sweetopium avatar Sep 03 '16 08:09 sweetopium

you want scheduling... if yes, then i'hv achieved this thing with little bit trick. if you want.. i can share my code with you

ervaibhavsinghal avatar Jan 04 '17 14:01 ervaibhavsinghal

Are you sure you are passing a datetime object? This works fine for me. Also, for moving back and forth in dates Arrow python library is one of the best.

n3storm avatar Jul 24 '17 10:07 n3storm