David Handermann created NIFI-8768:
--------------------------------------

             Summary: Incorrect Date Parsing from String in Record Readers
                 Key: NIFI-8768
                 URL: https://issues.apache.org/jira/browse/NIFI-8768
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.13.2
            Reporter: David Handermann
            Assignee: David Handermann


Multiple Record Reader implementations leverage {{DataTypeUtils.convertType()}} 
to convert field values to an expected type of object. The 
{{RecordFieldType.DATE}} indicates that the field should be converted into a 
{{java.sql.Date}} object and currently relies on {{DataTypeUtils.toDate()}} to 
handle the conversion. When the input value of {{convertType()}} is a String 
such as {{2000-01-01}}, the resulting {{java.sql.Date}} has one day subtracted, 
returning {{1999-12-31}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to