Jump to content

Edit "created" field in page created via API


thomas
 Share

Recommended Posts

Hi everyone,

is it possible to edit the "created" field of a page I create via the API? I tried

$page->created = '2011-03-23 16:37:07';

as well as inserting a Unix timestamp but "created" is always "now" ...

(Background: I'm getting page data from an external server and to keep this sorted right with all the other pages (like in search results) I don't want to use a custom date field.)

Thanks,

thomas

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...