Peter Turcsanyi created NIFI-8145:
-------------------------------------
Summary: ListFTP is not aware of the server's time zone
Key: NIFI-8145
URL: https://issues.apache.org/jira/browse/NIFI-8145
Project: Apache NiFi
Issue Type: Improvement
Reporter: Peter Turcsanyi
FTP servers sends the last modification time of the files in UTC or in their
local timezone but NiFi (or more precisely the underlying commons-net
FTPClient) interprets it in the local time zone if NiFi by default.
For example:
- FTP server is located in EST, the file mod time is "Jan 14 15:34"
- the server sends it in UTC as "20210114203400" (MDTM) or "Jan 14 20:34"
(LIST)
- NiFi interprets it in local time zone and sets file.lastModifiedTime
attribute on the FF like "2021-01-14T20:34:00+0100" (if running in GMT+1) or
"2021-01-14T20:34:00+1100" (if running in GMT+11), they should be
"2021-01-14T21:34:00+0100" and "2021-01-15T07:34:00+1100" respectively
It does not cause any problem (beyond the incorrect attribute value) in
Timestamp Tracing strategy because every timestamps will be shifted with the
same amount but it may be a problem in case of the new Time Window strategy
(being implemented in NIFI-8081).
Add a new property to specify the server's time zone by the user (it is not
possible to get it back from the server). The property should be optional and
the previous behaviour should be provided when not specified.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)