SpectroSERVER reporting UTC time
search cancel

SpectroSERVER reporting UTC time

book

Article ID: 143089

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

On Windows when starting the SpectroSERVER using the startSS.pl script inside the bash shell, the SpectroSERVER will start to use UTC time instead of the system time.

This can cause things like the Global Sync Task to kick off at the wrong time. The log messages in the VNM.OUT are showing UTC time, e.g.,

System Time: Pacific

Environment

Release : 10.3.0, 10.3.1, 10.3.2

Component : Spectrum Core / SpectroSERVER

Cause

This appears to be a bug in Cygwin and was likely introduced in Spectrum 10.3.0 when Cygwin was updated.

Resolution

The Cygwin problem is still being investigated. 

Workaround:
As a workaround prevent the TZ environment variable from being set.

This will cause Cygwin to use the server time instead of UTC. This can be done by renaming the following 2 files and launching a new bash prompt

  • $SPECROOT/NT-Tools/SRE/etc/profile.d/tzset.csh
  • $SPECROOT/NT-Tools/SRE/etc/profile.d/tzset.sh

For example:

- Launch a new bash shell. Now when using startSS.pl to start the SpectroSERVER, it will use the system time.

 

Attachments