Question about server time

Junior Spellweaver
Joined
Mar 2, 2023
Messages
197
Reaction score
336
Location
Russia, Moscow
Please explain how server time works...

Code:
SM_VERSION_CHECK.java
->
writeD((int) (Calendar.getInstance().getTimeInMillis() / 1000));
writeD(-10800);

In theory, we get Moscow time (GMT+3)

But at the same time, the spawns do not work at the time specified by me

Code:
Cron expression: 0 0 15 ? * *

At 15:00, I should have Sunayaka. The script works 100 percent... But Sunayaka does not appear, exactly like other tasks from the scheduler at the specified time...

So still. What time do the cron tasks work?
 
You will need to find the correct value that corresponds to your country's time in writeD(-10800);
For me it works this way -> writeD(+10800);// 5.8 (-3600 = +1 Std, 0 = -1Std)

But i confess that i haven't tested the dungeon and event schedules :sleep:

+/-10800 value can be changed to higher or lower...

Ex.: (+10802) or (-10802) etc...
Ex.: (+10798) or (-10798) etc...
 
Last edited:
Upvote 0
You will need to find the correct value that corresponds to your country's time in writeD(-10800);
For me it works this way -> writeD(+10800);// 5.8 (-3600 = +1 Std, 0 = -1Std)

But i confess that i haven't tested the dungeon and event schedules :sleep:

+/-10800 value can be changed to higher or lower...

Ex.: (+10802) or (-10802) etc...
Ex.: (+10798) or (-10798) etc...
with my value "server time" inside the game is displayed correctly, as I need. but for some reason, scheduled events do not start at the specified time ... No sieges, no spawns .. this is very strange. maybe the schedule of events is written somewhere separately, do you have such information?
 
Upvote 0
...\config\schedule

In my tests everything is working fine....

test - Question about server time - RaGEZONE Forums
 
Upvote 0
...\config\schedule

In my tests everything is working fine....

View attachment 197718
hmm, strange. okay, I'll look, maybe I did something wrong somewhere. thanks for the help

...\config\schedule

In my tests everything is working fine....

View attachment 197718

This is as strange as possible, but, I change the time of sieges in the file siege_schedule.xml, but nothing changes in the game.. It's as if the schedule file is not being read by the server at all.. I will try to compare my SRC files and files from Encom... Maybe I'll find a problem..
 
Last edited:
Upvote 0
Back