sharanggupta opened a new pull request, #24270: URL: https://github.com/apache/kafka/pull/24270
`Values.convertToDate` turns a Timestamp into a Date by dividing the epoch milliseconds by the length of a day. Integer division rounds towards zero, so every timestamp before 1970 that is not exactly midnight UTC becomes the following day: 1969-12-31T23:59:59.999Z is converted to 1970-01-01. The division now rounds down. Testing: the new `ValuesTest#shouldConvertTimestampBeforeEpochToDate` fails without the change. `connect:api:test`, `connect:transforms:test`, `connect:json:test`, checkstyle for `connect:api` and `spotlessCheck` pass locally. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
