0

I have a Unix timestamp in my feed (1457685095000) and I am trying to map it to the date created entry field and I have another that I am trying to map to a time input field.

The created date is setting the date to a wildly incorrect value and the time field isn't getting set at all.

Any help would be appreciated.

1

According to the documentation for the Date field, Feed Me uses date_parse to parse a provided date string into a proper date object. date_parse uses strtotime underneath, which seems to have issues with timestamps.

I just wanted to confirm your timestamp though, as it seems to not produce the correct date for me using:

echo date('Y-m-d H:i:s', 1457685095000);

// Results in
48162-03-15 06:23:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.