The Time Zone Database (often called tz or zoneinfo) contains code and data that represent the history of local time for many representative locations around the globe.
It is updated periodically to reflect the changes made by political bodies to time zone boundaries, UTC offsets, and daylight-saving rules. Its management procedure is documented in BCP 175: Procedures for Maintaining the Time Zone Database.
For Linux, you may use the tzdata package. However, if you have Java applications, updating an OS tzdata package is not enough because JRE maintains its own timezone data files in $JRE_HOME/lib/tzdb.dat since JRE 1.8.
As CentOS6 has reached its end-of-life, we can no longer use "yum update" to update the timezone data. Please use this article to update time zone data on InterScan Messaging Security Virtual Appliance (IMSVA) in order to show the correct date and time information.
Updating the OS Time Zone Data
- Use SSH to connect to IMSVA with root credentials.
- Download and install the timezone data package.
wget https://vault.centos.org/6.10/updates/i386/Packages/tzdata-2020d-1.el6.noarch.rpm rpm -Uvh tzdata-2020d-1.el6.noarch.rpm
Updating the JRE Time Zone Data
- Download the latest timezone update (TZUpdate) tool.
- Extract the tzupdater.jar file and save it to a folder.
- Download the latest tzdata-latest.tar.gz file.
- Use winSCP or other SCP tools to upload the tzupdater.jar and tzdata-latest.tar.gz files to IMSVA's /tmp directory.
- SSH to IMSVA with root crendential and then execute the following command line:
/opt/trend/imss/UI/javaJRE/bin/java -jar /tmp/tzupdater.jar -l file:///tmp/tzdata-latest.tar.gz -v
As a result, /opt/trend/imss/UI/javaJRE/lib/tzdb.dat are updated.
- Restart IMSVA web console service using the following command:
Changing the Local Time Zone
Check the current time zone settings and change it as necessary: