I’m testing Ghost in a local environment (using the docker approach for migrating to Ghost 2.x). I’m importing content from an existing wordpress blog.
When I import the json dump from the (old) wordpress ghost plugin, all the posts have this warning about the date variable:
Post: Date is in a wrong format and invalid. It was replaced with the current timestamp.
In the JSON I see dates like "Mon, 22 Oct 2018 15:09:13 +0000"
. So I assumed that I needed timestamps and tried "1540220953"
(which I tried as both a number and a string in the json). No luck. So I dumped out a date variable in node and got "2018-10-22T15:09:13.000Z"
.
I edited the json with all these alternatives but to no avail. So I checked the ghost importer source (for v1). I believe the relevant line is here: https://github.com/TryGhost/Ghost/blob/cd690efad15dc51546d9099c59a59af88b641f42/core/server/data/importer/importers/data/base.js#L74 and now I’m really confused because the last option there should have worked right?
What do my timestamps have to look like?