Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Jazz Build Engine Timestamp revisited

I am running Jazz 4.0.4 on a Red Hat Enterprise Linux 6 server virtual machine. I run bot the RTC eclipse client and the JBE on the same machine
All the times displayed in the RTC client are correct (EDT)
But the JBE timestamp appears to EST.
[jfeldman@bosvmjerry ~]$ date
Fri May  2 16:01:00 EDT 2014
[jfeldman@bosvmjerry ~]$ myjbe
2014-05-02 15:01:09 [Jazz build engine] Running build loop...
2014-05-02 15:01:09 [Jazz build engine] Waiting for request...

The build listing in the client shows the correct start time.

I am certain that the virtual machine is configured correctly. Also, the repository server is in the same timezone.

0 votes

Comments
 We have the same problem. Any updates? eclipse]$ date Fri Mar 17 09:56:07 EDT 2017 eclipse]$ ./jbe -vm /usr/bin/java -repository https:///ccm/ -userId -passwordFile ./passwd -engineID t_main -data /data/Build/empi_usjar/code -interactive 2017-03-17 08:56:11 [Jazz build engine] Running build loop... 2017-03-17 08:56:11 [Jazz build engine] Waiting for request...

What are the timezone settings of The machine that hosts the JBE The server the JBE connects to Is the time wrong in EDT or is just the assumed time zone wrong?

>>The machine that hosts the JBE  GNU/Linux has EDT timezone eclipse]$ date Fri Mar 17 09:56:07 EDT 2017 >>The server the JBE connects to We have Windows based RTC server tzutil /g  Eastern Standard Time Thank you

All Windows hosts was shift to daytime automatically with  <Automatically adjust clock for Daylight Saving Time> check box. All Linux host was shift to EDT from EST recently. It works fine in case of we start JBE on one of Windows host actually. We getting problem with Linux hosts only. Thank you

 The server that hosts the JBE shows the same timezone the JBE shows - at least from the information above. So there is no surprised the JBE shows the same. Am I missing something?

 JBE does not show timezone actually. Let me go back to original dump please. Build host has EDT and current time 09:56:07 but JBE shows start time 08:56:11 This is 1 hr difference. That what let me assume that JBE still pick EST vs. of EDT, but I am not sure about it. eclipse]$ date Fri Mar 17 09:56:07 EDT 2017 eclipse]$ ./jbe -vm /usr/bin/java -repository https:///ccm/ -userId -passwordFile ./passwd -engineID t_main -data /data/Build/empi_usjar/code -interactive 2017-03-17 08:56:11 [Jazz build engine] Running build loop... 2017-03-17 08:56:11 [Jazz build engine] Waiting for request... Any ideas?

I would have expected the JBE uses the timezone of the machine. You could try to tell the JVM of the JBE to use a specific one. Go to  JBEInstallDir\jazz\buildsystem\buildengine\eclipse and edit the jbe.ini, add  -Duser.timezone=EDT You can add this at the end. I have not tried that myself, but I set the user language on a regular basis. i was unable to find the values for this setting, there is no official doc page. I found similar answers on stackoverflow, so it is worth trying.

The java application likely uses SimpleDateFormat http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html#timezone to print the time , so GMT+/- hour might be also a valid input. https://en.wikipedia.org/wiki/List_of_tz_database_time_zones is a list of values.

 Ralph. I did change abd here is my jbe.ini eclipse]$ cat jbe.ini -vm /data/IBM/TeamConcertBuild/jre/bin/java --launcher.suppressErrors -vmargs -Dosgi.requiredJavaVersion=1.6 -verbose:gc -Duser.timezone=EDT Unfortunately no luck: eclipse]$ date Fri Mar 17 11:26:33 EDT 2017 eclipse]$ ./jbe -repository https://10.118.19.57:9443/ccm/ -userId *** -passwordFile ./passwd -engineID t_main -data /data/Build/empi_usjar/code -interactive 2017-03-17 10:26:45 [Jazz build engine] Running build loop... 2017-03-17 10:26:45 [Jazz build engine] Waiting for request... Any ideas?

 Correction: eclipse]$ cat jbe.1 -vm /data/IBM/TeamConcertBuild/jre/bin/java --launcher.suppressErrors -vmargs -Dosgi.requiredJavaVersion=1.6 -Dcom.ibm.team.filesystem.client.disable.fslistener=true -verbose:gc -Duser.timezone=EDT

 Sorry for confuse you: eclipse]$ cat jbe.ini -vm /data/IBM/TeamConcertBuild/jre/bin/java --launcher.suppressErrors -vmargs -Dosgi.requiredJavaVersion=1.6 -Dcom.ibm.team.filesystem.client.disable.fslistener=true -Duser.timezone=EDT This is correct jbe.ini

showing 5 of 11 show 6 more comments

Accepted answer

Permanent link
Ralph.

Issue resolved:

 
[devusr@USSLTCSNL2483 eclipse]$ cat jbe.ini
-vm
/usr/bin/java
--launcher.suppressErrors
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Dcom.ibm.team.filesystem.client.disable.fslistener=true
-Duser.timezone=America/New_York
-verbose:gc

[devusr@USSLTCSNL2483 eclipse]$ date
Fri Mar 17 14:31:59 EDT 2017
[devusr@USSLTCSNL2483 eclipse]$ ./jbe -repository https://10.118.19.57:9443/ccm/ -userId mikuzmenko -passwordFile ./passwd -engineID t_main -data /data/Build/empi_usjar/code -interactive
2017-03-17 14:32:04 [Jazz build engine] Running build loop...
2017-03-17 14:32:04 [Jazz build engine] Waiting for request...

Thank you

Ralph Schoon selected this answer as the correct answer

0 votes

Comments
 See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for valid values

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 02 '14, 4:23 p.m.

Question was seen: 6,884 times

Last updated: Mar 28 '17, 7:43 a.m.

Confirmation Cancel Confirm