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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...