Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.14.0, 1.13.2
-
None
Description
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.
Attachments
Issue Links
- relates to
-
NIFI-11367 Database DATE value displayed incorrectly in record output if timezone is GMT-X
- Resolved
- links to