Closed ivanchaer closed 8 years ago
Thank you for reporting this @ivanchaer ! In fact we still need to properly support both datetime and datestamp fields, I'll fix this.
@ivanchaer please check if the pushed fixes solve your issue.
Thanks @ademarco, you fixed it!
Hello Antonio,
We started using the Producer module to generate JSONS from a Drupal installation.
When I export a node with a field of type Date, I get the "Illegal string offset" PHP Warning on the file:
Where it tries to treat
$value
as an array, for example on the line:The
$value
variable received was not an array, but a string with the timestamp.I manually patched the mentioned file, creating the array that it was expecting, as in:
(...)
(...)
After this, the exported nodes have the date.
Please, find attached a feature containing the field instance and the field type, and let me know if there is any other info that could be helpful.
transport_news_date_field.zip
Many thanks, Ivan