[
https://issues.apache.org/jira/browse/NIFI-2908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824826#comment-15824826
]
ASF subversion and git services commented on NIFI-2908:
-------------------------------------------------------
Commit 3bb876eb835499845e66848e815cd166b683232c in nifi's branch
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=3bb876e ]
NIFI-2908 Added TimeZone to toDate() and format() EL
This closes #1381.
Signed-off-by: Koji Kawamura <[email protected]>
> Add TimeZone support to EL date functions
> -----------------------------------------
>
> Key: NIFI-2908
> URL: https://issues.apache.org/jira/browse/NIFI-2908
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Dave Torok
> Assignee: Pierre Villard
> Priority: Minor
>
> Currently the toDate() and format() functions under the hood use a
> SimpleDateFormat with the current system timezone. This leads to hard to
> locate data inconsistency errors when parsing and then generating date
> strings when the date strings are not in the same or current time zone.
> Even the example given in the documentation
> ${time:format("yyyy/MM/dd HH:mm:ss.SSS'Z'")}
> will give an incorrect output when the system timezone is not set to GMT.
> suggestion is to add a variant to toDate(String tz) and format(String tz)
> which accepts a timezone of Java nomenclature which can be set with
> "SimpleDateFormat.setTimeZone(TimeZone.getTimeZone(tz))"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)