You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2017/04/19 20:16:41 UTC

[jira] [Created] (NIFI-3718) TestAvroRecordReader fails due to timezone issue

Matt Burgess created NIFI-3718:
----------------------------------

             Summary: TestAvroRecordReader fails due to timezone issue
                 Key: NIFI-3718
                 URL: https://issues.apache.org/jira/browse/NIFI-3718
             Project: Apache NiFi
          Issue Type: Bug
          Components: Tools and Build
    Affects Versions: 1.2.0
            Reporter: Matt Burgess
             Fix For: 1.2.0


TestAvroRecord is failing on Travis due to a timezone issue, it seems to fail when using GMT/UTC (which Travis apparently uses) but passes in other timezones such as EDT.

It looks like the issue is with the test using Date.toString() in the assert statement, the internal value is correct but when converted to a String, the value in the "date" field in the record should be a day later (April 5) but is not.

Proposed fix is to decrement the value in the "date" field in the test record, and use a GMT-based DateFormat to format the value of the "date" field.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)