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.

CommentFileSizeAuthor
#3 feedapi_mapper_date.patch1.62 KBantianti
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru’s picture

I 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.

mediahackers’s picture

+1

antianti’s picture

Issue tags: +patch, +custom date
FileSize
1.62 KB

We solved the problem in this way!

alex_b’s picture

Title: Can't map a date in a cck date field » Support custom date formats
Version: 6.x-1.0-beta9 » 6.x-1.x-dev
Status: Active » Needs work

This 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

apaderno’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)
Issue tags: -patch, -custom date

I am closing this issue, which is for a not-supported Drupal version.