[ 
https://issues.apache.org/jira/browse/NIFI-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265574#comment-16265574
 ] 

Mike Thomsen commented on NIFI-2079:
------------------------------------

This just requires a change in how you send the message to Mongo. You have to 
use Mongo Extended JSON:

{
    "dateField": {
         "$date": DATE_AS_LONG
    }
}

For PutMongoRecord all you have to do is use a long annotated as a timestamp or 
an int annotated as a date and make sure record reader has the format options 
done configured correctly for timestamp and date.

I think this ticket can be closed.

> Cannot insert ISO dates correctly
> ---------------------------------
>
>                 Key: NIFI-2079
>                 URL: https://issues.apache.org/jira/browse/NIFI-2079
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.6.1
>            Reporter: asanka sanjaya
>
> When try to insert an ISO date to a mongo collection, it always saved as a 
> String instead of ISODate object.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to