Closed (outdated)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2011 at 15:20 UTC
Updated:
16 Jun 2016 at 22:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mariagwyn commentedhaving the same problem. Has this been addressed in the code at all? I added the modification above but it did not seem to have an affect. The problem may be that I am entering years like '0409' since I am dealing with historical material. Is there a way to format the date itself that I am missing?
Comment #2
to.stepan.kuzmin@gmail.com commentedComment #3
tekante commentedI can confirm the issue exists in the latest code as well and that the patch from #3 resolves the issue. To replicate I set up a date field on a node and used a CSV processor to import 3 records, all with different date formats. One was an epoch time, one was a mm/dd/yyyy string and one was only a year. Before applying the patch the year did not import as desired, after applying the patch and reimporting all three had the desired year.
This patch would prevent anyone from importing unix epoch times with values < 10,000 but I don't see an obvious way in the feeds source to make available an option for picking the input format of the source data. My test data file is attached.
Comment #4
emackn commentedWorks well, committed. Thanks!
Comment #6
dave reidI think this needs to be backported to 6.x-1.x as well?
Comment #7
twistor commented