Page 1 of 1

Wrong Server Time

Posted: Fri Feb 12, 2010 10:48 am
by Postforge
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number: 3695
L2JDP Revision Number: 6775

Hi,
I have a problem in my server:
the time in the OS is correct but the time in game is 2 hour after.
For example if I talk with the NPC Gibbson outside Dion Castle, the Current Time is 13:00 but OS time is 11:00.

How can I fix it?

Re: Wrong Server Time

Posted: Mon Feb 15, 2010 4:00 pm
by Postforge
up

Re: Wrong Server Time

Posted: Mon Feb 15, 2010 4:22 pm
by janiii
i think java takes the time from the jvm (java virtual machine) which takes the time from the os. maybe your default locale is wrong, or some other regional setting in os is wrong.

Re: Wrong Server Time

Posted: Mon Feb 15, 2010 5:35 pm
by Postforge
janiii wrote:i think java takes the time from the jvm (java virtual machine) which takes the time from the os. maybe your default locale is wrong, or some other regional setting in os is wrong.
In my os the time now is:
lun feb 15 18:35:29 GMT+1 2010
and it is correct... but how can i check and eventually change the time in the jvm?

Re: Wrong Server Time

Posted: Wed Feb 17, 2010 5:24 pm
by Postforge
up

Re: Wrong Server Time

Posted: Wed Feb 17, 2010 6:58 pm
by BiggBoss
servers uses the time and locale of your computer to get the GTM + 0. So if you are in a GTM + 1 zone, put your server machine hour 1 more than you would like to have in server.