Incorrect time and timezone in OneClick WebApp

book

Article ID: 197585

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The Alarms TAB of OneClick WebApp is displaying an incorrect time. The time displayed is one hour ahead.
 
The OneClick Console is displaying the correct time.

Cause

There is a timezone issue (DST - Daylight Saving Time) on the OneClick web server and Desktop machines.

 

In CA/DX Spectrum 10.3.2 release, the OneClick WebApp uses the timezone defined on the OneClick web server machine.

In DX Spectrum 10.4.2 release, the OneClick WebApp uses the timezone defined on the desktop where the browser was launched.

If the "Adjust for daylight saving time automatically" option is disabled on the desktop, the OneClick Console will display the GMT-04:00.
If the "Adjust for daylight saving time automatically" option is enabled on the desktop, the OneClick Console will display the CLST.

If the "Adjust for daylight saving time automatically" option is disabled on the OneClick web server, the OneClick WebApp will display the GMT-04:00.
If the "Adjust for daylight saving time automatically" option is enabled on the OneClick web server, the OneClick WebApp will display the CLST.

CLT (Chile Standard Time)
CLST (Chile Summer Time)

Environment

Release : 10.3.2

Component : Spectrum OneClick

Resolution

A - Patch the timezone data on the OneClick web server machines:

1) Download the Java Time Zone Updater Tool from https://www.oracle.com/java/technologies/javase-tzupdater-downloads.html

2) Extract the tzupdater-2_3_1.zip file and save the tzupdater.jar file in the C:\win32app\Spectrum\Java\bin\ directory.

3) Download the tzdata2020a.tar.gz file from https://data.iana.org/time-zones/releases/ and save it in the C:\win32app\Spectrum\Java\bin\ directory.

4) Open a Windows Command Line (cmd.exe) and run the following command to check the version of tzupdater.jar file and the tzdata file:

C:\win32app\Spectrum\Java\bin>java -jar tzupdater.jar -V

5) In a Windows Command Line run the following command to patch the installation with the most recent timezone data (tzdata2020a):

C:\win32app\Spectrum\Java\bin>java -jar tzupdater.jar -l file:///C:/win32app/Spectrum/Java/bin/tzdata2020a.tar.gz

6) Stop/Start the SpectrumTomcat and SpectrumWebTomcat services.

 

B - Patch the timezone data on the SpectroSERVERs machines:

1) Do the same kind to steps to patch the timezone data on the SpectroSERVER machines.

2) Stop the SpectroSERVER application, Archive Manager, and Spectrum Process Daemon. Then start the Spectrum Process Daemon, SpectroSERVER application, and Archive Manager.

 

C - Patch the timezone data on the desktop machines:

1) Do the same kind of steps to patch the timezone data on the desktop machines. If the desktop has access to the internet, the following syntax can be used:

C:\Program Files\Java\jre_1.8.0_192\bin>java -jar tzupdater.jar -l https://data.iana.org/time-zones/releases/tzdata2020a.tar.gz

 

 

Additional Information

Workaround:

"Adjust for daylight saving time automatically" option is disabled on the desktop and on the OneClick web server.

In Windows 10:

In Windows 2012 R2:

Attachments