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

How do I change the created date when I create a node? #1035

Open
v1talii-dev opened this issue Jun 23, 2018 · 0 comments
Open

How do I change the created date when I create a node? #1035

v1talii-dev opened this issue Jun 23, 2018 · 0 comments

Comments

@v1talii-dev
Copy link

v1talii-dev commented Jun 23, 2018

I use this code:

protected function publicFields() {
  $public_fields = parent::publicFields();
  $public_fields['created'] = [
    'property' => 'created',
  ];
}

But i get error:

{
    "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title": "Property created cannot be set.",
    "status": 400,
    "detail": "Bad Request",
    "instance": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant