Support Questions

Find answers, ask questions, and share your expertise

Change Timezone in Nifi

avatar
Contributor

Hi,

When I use the Nifi User Interface, I notice that the time is always set to CST, but I live in EST.

Is there a setting that I can change to reflect my relevant timezone?

Best,

Michael

1 ACCEPTED SOLUTION

avatar
Contributor

@Karthik Narayanan

I fixed it with something like this. I went into the bootstrap.conf file and added this argument: java.arg.8=-Duser.timezone=America/New_York

references: http://stackoverflow.com/questions/2627992/force-java-timezone-as-gmt-utc and

https://confluence.atlassian.com/kb/setting-the-timezone-for-the-java-environment-841187402.html

View solution in original post

7 REPLIES 7

avatar
Super Collaborator

do you have NiFi installed on your machine locally, or is it on a server. It could be possible that NiFi is reflecting the time of the server on the UI.

avatar
Contributor

I have it installed on my server, and the time on my server is the correct with the correct timezone.

avatar
Super Collaborator

the server where you have installed NiFi is setup to be in EST?

avatar
Super Collaborator

is it possible that the timezone was changed after you started Nifi, if possible try restarting the nifi, and it should update to the correct time zone.

avatar
Contributor

@Karthik Narayanan

I fixed it with something like this. I went into the bootstrap.conf file and added this argument: java.arg.8=-Duser.timezone=America/New_York

references: http://stackoverflow.com/questions/2627992/force-java-timezone-as-gmt-utc and

https://confluence.atlassian.com/kb/setting-the-timezone-for-the-java-environment-841187402.html

avatar
Explorer

I tried "java.arg.8=-Duser.timezone=America/New_York". It does not work for me.

 

I posted one question earlier:  https://stackoverflow.com/questions/65620632/why-do-executesqlrecord-and-csvrecordsetwriter-updated-...

avatar
New Contributor

@Karthik Narayanan

I tried changing time zone to IST and now it is showing Indian time with "GMT" tag. any solution to this problem?