exceptionfactory commented on pull request #4734:
URL: https://github.com/apache/nifi/pull/4734#issuecomment-757089861


   @turcsanyip The other use of `AvroTypeUtil.LOGICAL_TYPE_DATE` was in the 
`normalizeValue()`, which was causing the problem with `ConvertRecord`.  The 
use of `new java.sql.Date()` with milliseconds resulted in the system default 
timezone throwing off the converted date.  I updated `normalizeValue()` to use 
`LocalDate.ofEpochDay()` and added a unit test method to confirm the corrected 
behavior.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to