Jump to content
Guest

Changing time?

Recommended Posts

Guest

How would I go about changing the time of my server in game?

Share this post


Link to post
Share on other sites

Getting a new server.

The remote from that Adam Sandler movie, a Delorean, telephone booth, etc.

If you are not going to be helpful, do not post.

Answer:

If you have full RDP access to the server you can turn off the DayZ gameserver and then change the system clock. Once you change the system clock time you can restart the server.

  • Like 1

Share this post


Link to post
Share on other sites

Have you considered making a server config parameter for adding a time offset relative to the system clock? I assume that would be possible, and would allow for running servers in various time zones on the same host, which is highly relevant to GSPs. It would also avoid messing up other time-dependent tasks running on the hosts, such as back-up scripts that are typically set to run during actual night-time.

Edited by Kybber

Share this post


Link to post
Share on other sites

Have you considered making a server config parameter for adding a time offset relative to the system clock? I assume that would be possible, and would allow for running servers in various time zones on the same host, which is highly relevant to GSPs. It would also avoid messing up other time-dependent tasks running on the hosts, such as back-up scripts that are typically set to run during actual night-time.

Kybber is this easy to do? Do we have any working examples that I can reference?

Group of friends have recently signed up to rent our own server, however since it's on the east coast we don't usually get together until the late evening or night. Therefore the server is always dark.

Share this post


Link to post
Share on other sites

I wish there was a way to do it without changing the system clock. Someone mentioned in the mission file in another thread, however we're not allowed to modify that. I hate reading through logs that are offset from my normal time. Not to mention the logs for all of my other games on my box are offset now too...

Share this post


Link to post
Share on other sites

TzUtil /s "romance standard time"

Net start 1server

timeout /t 120 /nobreak

tzutil /s "central standard time"

Net start second server

Timeout /t 180 /nobreak

TzUtil /s "romance standard time"

That's what I do on my server after having setup the two software server has services with NSSM . It works...but it sucks...it's a workaround , that could cause problem...

For example , if the server in GMT-6 crash , it will relaunch with another batch (pretty much the same) ,

This batch will turn back the system clock to GMT-6 before relaunching the server...

But if this server has crashed at 5PM...the system clock will go to 9AM...and 9AM is one of the hours when i Restart the other server...So it will cause this other server to restart...

As said in another topic , it doesn't happen often , but it happens...

Right now i'm searching a way to set a specific system time clock for a specific user or service...with that i can create two users , with their own clock , and each servers will be launch by the good user...

But i'm still unlucky , and do not find anything...

so yes we need a way to change it by ourself in the mission file...

if we cannot edit them...perhaps it could be useful to create a sort of script on the website (client area) where the hoster choose a time clock , and the script will automatically do the modifications in the missions file ...so we just have to download it...

I'm not a webdev , so I do not know if it can be done.

Share this post


Link to post
Share on other sites

Very interesting Khal. Thanks for that information.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×