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 <cnagasati...@gmail.com>
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('yyyy-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<https://www.key-work.de> | 
Datenschutz<https://www.key-work.de/de/footer/datenschutz.html>
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

Reply via email to