You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mika Krieg (Jira)" <ji...@apache.org> on 2026/05/04 11:57:00 UTC
[jira] [Created] (NIFI-15900) Incorporate DST changes in Expression language duration functions
Mika Krieg created NIFI-15900:
---------------------------------
Summary: Incorporate DST changes in Expression language duration functions
Key: NIFI-15900
URL: https://issues.apache.org/jira/browse/NIFI-15900
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework, Extensions
Affects Versions: 2.9.0
Reporter: Mika Krieg
When adding durations to timestamps it is important for me to do so with respect to the local timezone.
This often requires the use of an ExecuteGroovyScript to use ZonedDateTime functions instead of a simple UpdateAttribute.
h2. Proposed solution
So it would be helpful if parsed timestamps act like a ZonedDateTime object with the specified timezone.
{code:java}
${literal('2026-03-29 00:00:00'):toDate("yyyy-MM-dd HH:mm:ss", "Europe/Vienna"):plusDuration("1 Days"):format("yyyy-MM-dd'T'HH:mm:ssXXX", "Europe/Vienna")}{code}
This expression currently evaluates to {{2026-03-30T01:00:00+02:00}}
I would like it to evaluate to {{2026-03-30T00:00:00+02:00}} since the locally dropped DST hour lies within this day-timeframe.
h2. supported units
The timezone sensitive durations would be:
* years
* weeks
* days
--
This message was sent by Atlassian Jira
(v8.20.10#820010)