You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Vijendra Kulhade (Jira)" <ji...@apache.org> on 2020/12/28 21:13:00 UTC

[jira] [Updated] (NIFI-8110) Nifi date format shows wrong date

     [ https://issues.apache.org/jira/browse/NIFI-8110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vijendra Kulhade updated NIFI-8110:
-----------------------------------
    Description: 
I have been using nifi date format through expression.
{code:java}
${now():toNumber():toDate():format("YYYY-MM-dd'T'HH:mm:ss'Z'")}
{code}
The output for this expression is coming 

2021-12-28T18:52:15Z

Expected should be 

2020-12-28T18:52:15Z

It works with 
{code:java}
${now():toNumber():toDate():format("yyyy-MM-dd'T'HH:mm:ss'Z'")}{code}
older version was supporting the later one 

  was:
I have been using nifi date format through expression.
{code:java}
${now():toNumber():toDate():format("YYYY-MM-dd'T'HH:mm:ss'Z'")}
{code}
The output for this expression is coming 

2021-12-28T18:52:15Z

Expected should be 

2020-12-28T18:52:15Z


> Nifi date format shows wrong date
> ---------------------------------
>
>                 Key: NIFI-8110
>                 URL: https://issues.apache.org/jira/browse/NIFI-8110
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.11.4
>            Reporter: Vijendra Kulhade
>            Priority: Major
>
> I have been using nifi date format through expression.
> {code:java}
> ${now():toNumber():toDate():format("YYYY-MM-dd'T'HH:mm:ss'Z'")}
> {code}
> The output for this expression is coming 
> 2021-12-28T18:52:15Z
> Expected should be 
> 2020-12-28T18:52:15Z
> It works with 
> {code:java}
> ${now():toNumber():toDate():format("yyyy-MM-dd'T'HH:mm:ss'Z'")}{code}
> older version was supporting the later one 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)