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

Michael Hopton commented on NIFI-3719:
--------------------------------------

The methods are used to display durations, not times. Durations should not have 
a timezone. 20 seconds is 20 seconds irrespective of where in the world you 
are. However, Nifi thinks 20 seconds is 30:20 because of where I live.

In Java 8, the Duration class from java.date should be used instead of using 
the Date class to represent a duration.
The bug is caused by formatting durations as times.

> Timezone error in 5-minute statistics processing time
> -----------------------------------------------------
>
>                 Key: NIFI-3719
>                 URL: https://issues.apache.org/jira/browse/NIFI-3719
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.2.0, 1.1.1
>         Environment: Windows 10 and Java 1.8.0_121.
> Also CentOS 7 with unknown Java version, but at least 1.7.
>            Reporter: Michael Hopton
>            Priority: Minor
>              Labels: patch
>         Attachments: 0001-Nifi-3719-Fix-timezone-for-durations.patch
>
>
> With timezone set to Australia\Sydney (AEST, UCT+10), each processor shows 
> Task / Time of 0 / 00:00:00.000.
> With timezone set to Australia\Adelaide (ACST, UCT+9:30), each processor 
> shows Task / Time of 0 / 00:30:00.000.



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

Reply via email to