TIBCO ActiveMatrix BusinessWorks (BW) application logs does not show the right timezone, and when using the current-dateTime() in Xpath, BW does not return the correct timezone. On another box, it works fine. How to debug this?

TIBCO ActiveMatrix BusinessWorks (BW) application logs does not show the right timezone, and when using the current-dateTime() in Xpath, BW does not return the correct timezone. On another box, it works fine. How to debug this?

book

Article ID: KB0094439

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
BW is a Java application and it will get the result similar as the jJva code does. Check the value of TZ in your system. If it is Windows, check your regional settings. BW uses the system timezone for writing logs and xpath functions.

If TZ is not set then check the value of /etc/sysconfig/clock  and see if it is set to the appropriate timezone such as:

America/New_York for Eastern time  and   America/Los_Angeles for pacific time.

Try to run the following Java code on your system:

>>>>>>>>>>>>>>>>>>>>>>>>test.java>>>>
import java.util.*;

public class test
{
  public static void main(String args[])
  {
        System.out.println(TimeZone.getDefault());
        System.out.println(new java.util.Date());
  }

}

The above code and BW will show the exact timezone as BW is a Java application. It takes the system timezone for writing logs and the xpath functions. If this does not return the right value, you need to set your system timezone settings appropriately and once you change the system settings, make sure to restart the the BW applications so the changes take effect.

Issue/Introduction

TIBCO ActiveMatrix BusinessWorks (BW) application logs does not show the right timezone, and when using the current-dateTime() in Xpath, BW does not return the correct timezone. On another box, it works fine. How to debug this?