Jump to content

Setting the time of day...


McPimpin

Recommended Posts

In the restarter.pl around line 50 there is a line 

   # Uncomment to disabe night
    #($h, $m) = (17, 0) if ($h > 17 || ($h >= 0 && $h < 4));

uncomment that to disable night or have a look at this this should fix time sync issues

 

 

Link to comment
Share on other sites

 

In the restarter.pl around line 50 there is a line 

   # Uncomment to disabe night
    #($h, $m) = (17, 0) if ($h > 17 || ($h >= 0 && $h < 4));

uncomment that to disable night or have a look at this this should fix time sync issues

 

 

 

Ok ,thanks

 

But what i was looking for is a way to set the time

Link to comment
Share on other sites

Apologies in the restarter.pl line 45 for me it should say 

    my ($s, $m, $h, $day, $mon, $y) = localtime(time() - 0*3600);

change the 0 to the timezone you are in so for me It would be 0 since I'm GMT +0

 

 

if you were +5 it would be 

    my ($s, $m, $h, $day, $mon, $y) = localtime(time() - 5*3600);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...