AionGermany / aion-germany

Aion Emulator
GNU General Public License v3.0
203 stars 184 forks source link

change server time #136

Closed steven90005 closed 5 years ago

steven90005 commented 5 years ago

I want to change my server time zone.

I edit my gameserver.timezone to Etc/GMT-8 or Asia/Taipei and SM_VERSION_CHECK.java from this website: http://falke34.bplaced.net/forums/archive/index.php?thread-3168.html

but these still don't work :( My emu version is 4.7.5.

FrozenKiller35 commented 5 years ago

writeD(28800) should -8 Hours

FrozenKiller35 commented 5 years ago

Dont know if this works but try this

writeD((int) (Calendar.getInstance().getTimeInMillis() / 1000)); writeH(350);//4.3 writeH(2561);//4.5

Change Both H to 1 D:

writeD((int) (Calendar.getInstance().getTimeInMillis() / 1000)); writeD(28800);

if this isnt working you also can try to add this change too :

writeC(GSConfig.SERVER_COUNTRY_CODE);// country code; writeC(0x00);// unk

to writeC(GSConfig.SERVER_COUNTRY_CODE);// country code; // writeC(0x00);// unk

steven90005 commented 5 years ago

Thanks for your answer

I try to add 50400(14 hr) on writeD((int) ((Calendar.getInstance().getTimeInMillis()/ 1000)+50400));

Then , it works!