If you import a node or user and don't have the "created" date as one of the fields, Feeds will create a default timestamp for this field that is incorrect (basically it seems to assume your local timezone is UTC).
This is closely related to the following issues:
#722740: Feeds Date mapper converts imported dates to GMT unless in UNIX timestamp format
#857216: Behavior on importing empty/NULL/invalid dates
However, it wouldn't be fixed by the patches in either of them. The solution, in any case, should be simple; the code already tries to fall back on REQUEST_TIME in the case where no created date is provided, but feeds_to_unixtime() doesn't let that happen because it attempts to convert a string to a date even when the string is empty.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | feeds-empty-created-date-1728634-1.patch | 438 bytes | David_Rothstein |
Comments
Comment #1
David_Rothstein commentedHere is a patch.
Comment #2
twistor commentedDate stuff is a mess, but this seems straight-forward.
7.x
http://drupalcode.org/project/feeds.git/commit/3bd7343
Comment #3
twistor commentedhuh, feeds_to_unix_time() does not exist in 6.x