System Information
- ** “@strapi/strapi”: “4.2.3”**:
- Mac OS:
- sqlite3:
During a migration from very old keystone, try to do something like that
await axios.post('http://localhost:1337/api/posts', {
data: {
content: posts[89].en.contentHtml,
createdAt: posts[89].publishDate,
updatedAt: posts[89].publishDate,
publishedAt: posts[89].publishDate
}
}).catch(error => console.error('error axios', error.response));
or
data: {
content: posts[89].en.contentHtml
},
createdAt: posts[89].publishDate,
updatedAt: posts[89].publishDate,
publishedAt: posts[89].publishDate
Anyway get in strapi this dates from time of code running, date format is “2018-12-04T00:00:00.000Z”