[ 
https://issues.apache.org/jira/browse/NIFI-3718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995120#comment-15995120
 ] 

ASF subversion and git services commented on NIFI-3718:
-------------------------------------------------------

Commit b7c15c360b63c717c7de0e724573a24b3b346d85 in nifi's branch 
refs/heads/master from [~mattyb149]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=b7c15c3 ]

NIFI-3718: Fixed timezone issue in TestAvroReaderWithEmbeddedSchema

This closes #1738


> 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)

Reply via email to