miaoyf / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

time display issue #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. click the Statistics pic
2.
3.

What is the expected output? 
the latest time on the right should be same as my computer time. (12:36)

What do you see instead?

about 3 o'clock

What version of the product are you using? On what application server, JDK,
operating system?
Solaris 10, apache-tomat 6.0.29, jdk1.6.0_22, javamelody-1.21.0.war, 
jrobin-1.5.9.jar, javamelody-1.21.0.jar

Please provide any additional information below.

See the attach pic.

Original issue reported on code.google.com by OZbillw...@gmail.com on 5 Nov 2010 at 1:41

Attachments:

GoogleCodeExporter commented 8 years ago
The latest time displayed at the right of the graph is based on the time and 
timezone of the server, and not of the client computer. This behavior seems ok 
to me in order to display in the graphic the last values for the server.
What is the hour (and default timezone) of the server for example when it is 
12:36 on the client computer? And what is really displayed in the main page of 
the report after "monitoring taken at"?

You don't want that the time at the right of the graphic is based only on the 
client computer time, or do you?

Original comment by evernat@free.fr on 5 Nov 2010 at 8:25

GoogleCodeExporter commented 8 years ago
bash-3.00$ date
Wed Nov 10 16:24:11 EST 2010

bash-3.00$ cd temp/javamelody
bash-3.00$ cat applications.properties
#urls des applications à monitorer
#Wed Nov 10 05:18:07 UTC 2010

My Solaris box is using AEST, but the javamelody use UTC.

Is it the problem?

Regards,
Bill

Original comment by OZbillw...@gmail.com on 10 Nov 2010 at 5:26

GoogleCodeExporter commented 8 years ago
I think I fixed the problem by myself.

In tomcat start/stop script cataline.sh, there is a line define the timezone.

CATALINA_OPTS=-Duser.timezone=Etc/UTC

After I remove it, javamelody shows the correct time.

bash-3.00$ cat applications.properties
#urls des applications à monitorer
#Thu Nov 11 13:01:09 EST 2010

So you can close the issue now. 

But I recommend maybe you can add this in FAQ, if someone else meet the same 
problem in the future.

Original comment by OZbillw...@gmail.com on 11 Nov 2010 at 2:09

GoogleCodeExporter commented 8 years ago
ok, thanks
(I have added a note in the online help for the next release)

Original comment by evernat@free.fr on 11 Nov 2010 at 9:45