Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Feed URL: http://www.echidna.it/seminari.xml
I've created a custom cck date field with a custom input format "gg/mm/yyyy" or "d/m/Y" in PHP as in TAG.
Everything is ok when mapping other fields, excecpt for the date field (All day). After importing process, node don't show the feed date, but the date of the day when the feed was imported.
Comment | File | Size | Author |
---|---|---|---|
#3 | feedapi_mapper_date.patch | 1.62 KB | antianti |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI have this too.
In my case I am using an XML feed and the date is the import date not the event date.
I used date and time as no others worked.
UPDATE:
MY DATE IS A NOT A CUSTOM DATE FIELD, but a regular one.
the start date is the date that I used feed to start the feed.
The end date is the start date.
This is just weird.
Comment #2
mediahackers CreditAttribution: mediahackers commented+1
Comment #3
antianti CreditAttribution: antianti commentedWe solved the problem in this way!
Comment #4
alex_b CreditAttribution: alex_b commentedThis approach could work, but I'd need to better compare it to the other mapping options, maybe a person better aquainted with date mapper than I could have a look at this.
Basically this customdate option can parse anything that can be parsed with strtotime() while ignoring time zones, right?
Either way, this patch will need work as it does not adhere to coding standards: http://drupal.org/coding-standards
Comment #5
apadernoI am closing this issue, which is for a not-supported Drupal version.