By: Neemesh Patel user 13 Jun 2016 at 10:07 a.m. CDT

1 Response
Neemesh Patel gravatar
Hi, I seem to have a problem where I've set the timezone for the operating system and the gluu-server-2.4.2 service, but this isn't being reflected in the logs. Could someone let me know how I can get the logs to reflect the timezone of the server? Below are the steps I have done thus far: 1. Logged into the main operating system as root (not the Gluu-server-2.4.2 service at this point) 1. Updated the system time with the command below 1. Verified correct time and timezone with 'date' 1. Logeed into the gluu service (sudo service gluu-server-2.4.2 login) 1. Updated the tme with the command below 1. Verified correct time and timezone with 'date' 1. Restart gluu service (tried also restarting entire server hardware), logs are still using incorrect time (UTC I think) ``` ln -sf /usr/share/zoneinfo/GB /etc/localtime ``` Thanks

By Aliaksandr Samuseu staff 13 Jun 2016 at 11:45 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, Neemesh. Here is how one other user resolved this before: ``` Final steps taken to resolve issue: Install ntp and verify time pool using instructions at http://www.cyberciti.biz/faq/howto-install-ntp-to-synchronize-server-clock/ (Assuming Centos) Start service -> service ntpd start Run to change timezone to CST. tzselect -> follow prompts rm /etc/localtime && ln -s /usr/share/zoneinfo/US/Central /etc/localtime service tomcat restart New log data should reflect CDT now. ```