Allow date strings as source for timestamp targets (like 'Authored on'/'created')

Created on 3 May 2018, over 6 years ago
Updated 30 June 2024, 2 months ago

Hi. Thanks for the great work with feeds.

I've used feeds several times on Drupal 7, and it's a very useful module. I'm using the new Alpha 1 release for Drupal 8 the first time, but there appears to be a bug with importing time/dates. I've mapped a field to 'Authored on', and no matter which format I use, I get an error:

created.0.value: This value should be of the correct primitive type

I've tried Unix Timestamps, yyyy-mm-dd, Y-m-d h:i:s etc, but nothing seems to work. If I take out the created field and associated mapping, imports work fine.

I've spent hours trying a variety or formats, so I think there is a good chance this is a bug with Alpha 1?

Kind regards,

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom infoox

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jweirather Phoenix, AZ

    #21/#25 worked for me, custom format "Y-m-d H:i:s" to import date fields for feeds in Drupal 10 from a Drupal 7 site, in particular, to carry over "Post date" to "Created on", in order to preserve the post dates from migrated content. I did not need to use tamper.

Production build 0.71.5 2024