Conversation
|
Just an FYI, I noticed these errors after upgrading to 6.7.0 in the FeedMe logs. I believe it is because the time field is using the format option but because this was added after the feed model was created the value was null. Resaving the field model populates "auto" and should fix it.
I don't know if for safety, given there might be other feeds that exist using time fields prior to the specific handling, if the formatting parameter is null coalesced to "auto" to prevent this. |
|
Thanks for this! Yes, resaving the feed will get rid of that issue. I raised a PR to default to the "auto" format. |
Description
Updated version of PR #1566 - thanks @jamesmacwhite!
Targets v5 (for Craft 4) and adds format options.
Original description:
This adds initial support for Feed Me to properly handle Craft time fields. Currently time fields are only possible to be imported when times are written as strings. This update parses time values through the DateHelper to ensure they are valid. Using the existing DateHelper, the parseTimeString method is used to parse mapped values.
In addition, the default value on the mapping uses a Craft time field, rather than a plain text field
The following test data was used as part of testing:
This is the initial starting point to ensure time fields can be used in Feed Me, currently there is no proper handling of this field type leading to issues with importing.
Related issues
#1561