[
https://issues.apache.org/jira/browse/NIFI-3718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-3718:
-------------------------------
Status: Patch Available (was: Reopened)
> 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
> Assignee: 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)