How to Change the Day/Night Cycle on Your 7 Days to Die Server
Adjust day length and daylight hours on your 7 Days to Die server using DayNightLength and DayLightLength.
Change the Day/Night Cycle
Stop the server
In the XGamingServer Panel, go to Console and stop the server.
Edit serverconfig.xml
Click Files in the sidebar and open serverconfig.xml. Set:
<property name="DayNightLength" value="60" />
<property name="DayLightLength" value="18" />Save and start
Click Save Content and start from Console.
Settings
| Setting | Default | Description |
|---|---|---|
DayNightLength | 60 | Real-time minutes per full in-game 24-hour day |
DayLightLength | 18 | In-game hours of daylight (out of 24). Default 18 = 18h day, 6h night |
Examples
| DayNightLength | DayLightLength | Effect |
|---|---|---|
60 | 18 | Default — 1 real hour per game day, 6h night |
120 | 18 | Double length days — 2 real hours per game day |
60 | 22 | Short nights — only 2 in-game hours of darkness |
30 | 18 | Fast days — 30 real minutes per game day |
Changing
DayNightLengthfrom the default (60) flags the server as "Modded" in the server browser.
Related Guides
How is this guide?

40% Off — Limited TimeGet your 7 Days to Die server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server
How to Install Darkness Falls on Your 7 Days to Die Server
Install the Darkness Falls overhaul mod on your 7 Days to Die dedicated server — full setup guide with EAC, world, and client requirements.
How to Change Difficulty on Your 7 Days to Die Server
Set the game difficulty on your 7 Days to Die server — from Scavenger (easiest) to Insane (hardest).