Wrong Server Time

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Postforge
Posts: 4
Joined: Fri Feb 12, 2010 9:36 am

Wrong Server Time

Post 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?
Postforge
Posts: 4
Joined: Fri Feb 12, 2010 9:36 am

Re: Wrong Server Time

Post by Postforge »

up
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Wrong Server Time

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Postforge
Posts: 4
Joined: Fri Feb 12, 2010 9:36 am

Re: Wrong Server Time

Post 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?
Postforge
Posts: 4
Joined: Fri Feb 12, 2010 9:36 am

Re: Wrong Server Time

Post by Postforge »

up
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Wrong Server Time

Post 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.
Image
Post Reply