# How to Change the Day/Night Cycle on Your 7 Days to Die Server (/docs/7-days-to-die/day-night-cycle)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Change the Day/Night Cycle [#change-the-daynight-cycle]

<Steps>
  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop the server.
  </Step>

  <Step>
    Edit serverconfig.xml [#edit-serverconfigxml]

    Click **Files** in the sidebar and open `serverconfig.xml`. Set:

    ```xml
    <property name="DayNightLength" value="60" />
    <property name="DayLightLength" value="18" />
    ```
  </Step>

  <Step>
    Save and start [#save-and-start]

    Click **Save Content** and start from **Console**.
  </Step>
</Steps>

Settings [#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 [#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 `DayNightLength` from the default (60) flags the server as **"Modded"** in the server browser.

Related Guides [#related-guides]

* [Blood Moon](/docs/7-days-to-die/blood-moon)
* [Server Configuration](/docs/7-days-to-die/server-config)
