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?
Wrong Server Time
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Wrong Server Time
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 4
- Joined: Fri Feb 12, 2010 9:36 am
Re: Wrong Server Time
In my os the time now is: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.
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?
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
Re: Wrong Server Time
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.