AW: Change time zone in NiFi

2020-11-26 Thread Ingrid Justen
I suppose you can set the timezone within the format.
Have a look at NiFi-Documentation of expression language section "Date 
Manipulation".
f.e.
${now():format("-MM-dd", "EST")}

Von: naga satish 
Gesendet: Donnerstag, 26. November 2020 10:28
An: users@nifi.apache.org
Betreff: Change time zone in NiFi

I'm working on a data ingestion project using NiFi. I need to load csv files 
into S3. Before loading files to S3 I need to add an extra column which is date 
of extraction for each record. I'm using update record processor to add date to 
each record. My regex to add date is now():format('-MM-dd'). The NiFi 
server is a cloudera server and the timezone is set to GMT time and my office 
is located in New Jersey(EST). I want to extract dates in EST. but NiFi 
considers the server's default time. Is there a way i can extract date in EST 
timezone?


AW: Change time zone in NiFi

2020-11-26 Thread Dobbernack, Harald (Key-Work)
In 
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#format
 you can see how to add your timezone, examples are in ‘Table 26. format 
Examples’
Hope that helps.

Von: naga satish 
Gesendet: Donnerstag, 26. November 2020 10:28
An: users@nifi.apache.org
Betreff: Change time zone in NiFi

I'm working on a data ingestion project using NiFi. I need to load csv files 
into S3. Before loading files to S3 I need to add an extra column which is date 
of extraction for each record. I'm using update record processor to add date to 
each record. My regex to add date is now():format('-MM-dd'). The NiFi 
server is a cloudera server and the timezone is set to GMT time and my office 
is located in New Jersey(EST). I want to extract dates in EST. but NiFi 
considers the server's default time. Is there a way i can extract date in EST 
timezone?


Harald Dobbernack

Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 | Karlsruhe | Germany | 
www.key-work.de | 
Datenschutz
Fon: +49-721-78203-264 | E-Mail: harald.dobbern...@key-work.de | Fax: 
+49-721-78203-10

Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim
Geschäftsführer: Andreas Stappert, Tobin Wotring