maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration
http://python-wordpress-xmlrpc.rtfd.org
MIT License
381 stars 130 forks source link

Post date format #103

Open sweetopium opened 8 years ago

sweetopium commented 8 years ago

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

ervaibhavsinghal commented 7 years ago

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

n3storm commented 7 years ago

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.