How to change the day length in Project Zomboid
Set DayLength = 5, (2 hours) in Zomboid/Server/main_SandboxVars.lua on the Files tab and restart the server.
DayLength
How long a full in-game day lasts in real time, from 15 minutes to real time. Default 4, 1 hour 30 minutes.
DayLength = <number>, Examples
DayLength = 5, Two hour days.
Values
| Value | What it does |
|---|---|
| 1 | 15 Minutes |
| 2 | 30 Minutes |
| 3 | 1 Hour |
| 4Default | 1 Hour, 30 Minutes |
| 5 | 2 Hours |
| 6 | 3 Hours |
| 7 | 4 Hours |
| 8 | 5 Hours |
| 9 | 6 Hours |
| 10 | 7 Hours |
| 11 | 8 Hours |
| 12 | 9 Hours |
| 13 | 10 Hours |
| 14 | 11 Hours |
| 15 | 12 Hours |
| 16 | 13 Hours |
| 17 | 14 Hours |
| 18 | 15 Hours |
| 19 | 16 Hours |
| 20 | 17 Hours |
| 21 | 18 Hours |
| 22 | 19 Hours |
| 23 | 20 Hours |
| 24 | 21 Hours |
| 25 | 22 Hours |
| 26 | 23 Hours |
| 27 | Real-time |
What it does
Longer days give players more time between nights.
Good to know
- Set it in
Zomboid/Server/main_SandboxVars.luaon the **Files** tab (under **Advanced**) and restart the server.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.