Project Zomboid

Project Zomboid

Adjust Day and Night Time
61 Comments
justinianocespedesismael 21 Jul @ 6:31am 
@Monclú please help me man, I need a world that 24 hours in game is 2 hours in real time, but I need the night itme to start getting dark at 19:00/7:00 pm (in game time). PLEASE HELP ME MAN PLEASEEE I NEED THIS I WILL GIVE 5 STARS IF YOU MANAGE TO HELP ME WITH THIS PLEASEE.
GibSon [NICA] 20 Apr @ 11:25pm 
We need a better explanation about the "Offset" section. It's not clear how it works. Nice mod though
NivekRkain 29 Mar @ 5:00pm 
real time sleep link is wrong
Acord 11 Feb @ 12:34pm 
??? how do i use the mod. i have no enough IQ for this :(
? 25 Jan @ 7:13pm 
Suddendly the date went from 10th july to 21st in a day. Great mod but this error gave me a tick
vsnegupal 16 Jan @ 1:15pm 
why didn't you describe it, really
vsnegupal 15 Jan @ 1:00am 
Dawn” and ‘Dusk’ options shift the time of dawn and dusk, i.e. if you have Dawn offset hours == -1 and Dusk offset hours == 1 - it means that dawn will come an hour earlier, and dusk - an hour later.

As for hour lengths, you should be able to calculate the ratio of real hour to game hour, after that there can be no questions.

If you still find it difficult, set hour lengths to 10 and 5.
КАРА 6 Jan @ 8:16am 
ааааааааааааааааАААААААААААААААААААААААААА:love_seagull:
Pacheco 30 Dec, 2024 @ 7:15am 
How to open it in the game?
Kiyora Usagi/Kio 29 Dec, 2024 @ 7:15pm 
W h y D i d Y o u M a k e T h i s S o C o n f u s i n g t o u s e
SatampraZeiros 23 Dec, 2024 @ 1:57pm 
Hey, i want to used this mod for having very long night and only play at night ( for enjoying the new dynamic lighting of build 42 ), but the properties are quite unclear, I read comments but can you add a section in your mod's description for some explanation please :)
Monclú  [author] 21 Dec, 2024 @ 12:37pm 
Thanks! @Kevin
Kevin_de_Arte 13 Dec, 2024 @ 9:40am 
Good mod if you know how to use it. I've added it to my +500 and +700 mod collections and it works great https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2785466535 if anyone wants to check it out.
Monclú  [author] 29 Oct, 2024 @ 2:59pm 
@Tules Conan Los ajustes se modifican en el modo Sandbox en tiempo
Tutos Conan 29 Oct, 2024 @ 11:37am 
Como cambio los ajustes del mod? No veo opción en ajustes.
Arduu 20 Aug, 2024 @ 9:37am 
how do u calculate it i cant understand can u make exemple ? irl time to game time please.
Cinquieme 20 Aug, 2024 @ 7:16am 
Hello ! :D I love your mod, and my players love it too ! Thanks a lot !

I read the comments before mine, but I still don't really get it (plus, I'm really tired), what will happen if my settings are :

DawnOffsetHours = 4.0,
DuskOffsetHours = 4.0,

Actually night arrives at 19h, approximately and day at 6h.
蛋蛋的忧伤 18 Mar, 2024 @ 2:32am 
How should I set it up? Whether I create a new server or the original server, the server settings and administrator cannot set this mod. In other words, I can't find a place to set it in "Sandbox Settings-Time"
Comrade Soviet☭ 29 Feb, 2024 @ 9:26pm 
how does down offset hours work?
miguel1108 23 Jan, 2024 @ 2:54pm 
I put in 50 seconds day and night, I feel like I was made in heaven
100% recommendable
Cray 9 Jan, 2024 @ 9:43am 
Perfect mod, and such a responsive modder in the comments. Love ya dude, i never comment
retr0l0gy 16 Oct, 2023 @ 10:36am 
is it normal to get sleepy at around 3 pm? i extended each hour by about 2 minutes i believe
HaddockGER 11 Oct, 2023 @ 9:53am 
@ Monclu Greetings, we have the following problem on our server from time to time. The day goes normally, at night time should run faster. So far it works but from time to time the time continues as normal. Only restarting the server solves the problem. Are you familiar with this?
KodeMan 21 Sep, 2023 @ 11:22am 
I have a question before adding this to our server. If we mess with day/night length using this mod, will it also affect sandbox settings that rely on in-game time?

So If I increased the night length I would also have to adjust things that rely on in-game time like zombie "respawn hours"?
Genestic12 23 Aug, 2023 @ 7:56pm 
Can I add this to a save?
ditoseadio 3 Aug, 2023 @ 6:07pm 
Hi, if I adjust the day length to 2 hours, what values should I use for day and night with this mod so that the days are twice as long as the nights and the full irl cycle is still 2 hours?
BotasmojadaS 16 May, 2023 @ 3:57pm 
Hi!, could you tell me how should i set it to having the longest day possible and the shortest night possible?
Monclú  [author] 9 May, 2023 @ 11:59am 
Thanks! C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2962586074\mods\AdjustDayAndNightTime\media\lua\shared\Translate\EN\Sandbox_EN.txt
Kabessaun 8 May, 2023 @ 10:01am 
if u want PT-BR send me the text i´ll translate for u!
Monclú  [author] 2 May, 2023 @ 10:39am 
3 hours in real life for one day-light
MrSecr3t 2 May, 2023 @ 3:42am 
So by setting it to 12 minutes per day hour will this mean it should take 3 hours in real life for one in game day to pass?
Monclú  [author] 1 May, 2023 @ 2:50pm 
12 minutes per day hour and 7.5 minutes per night hour
MrSecr3t 1 May, 2023 @ 12:16pm 
Hello, I'm struggling to understand how it works. What numbers would I put for 3 hour days and 1 hour nights?
Daevinski 28 Apr, 2023 @ 2:11pm 
Oh, okay... that explains everything, 'cause what I was expecting is to be Night and Dark at 7pm. I hope this is something you can implement at some point, if possible. But thanks anyway.
Monclú  [author] 28 Apr, 2023 @ 1:37pm 
If the day and night hour length are the same then there will be no difference. This mod does not modify daylight or other effects of day and night. It only modifies the speed of time. Offsets are only effective on the speed of time.
Daevinski 28 Apr, 2023 @ 10:34am 
I forgot to mention, but I also changed the Day and Night Hour Length to 12... so I guess that's the issue, right? If that's the case and if I want to keep these values, I should change the offset to which values?
Monclú  [author] 28 Apr, 2023 @ 9:32am 
Setting the default day (July 9th) and the dusk offset to -3.0 the time speed changes at 7 pm for me.
Daevinski 27 Apr, 2023 @ 6:48pm 
Hi again... sorry, but I think I'm not setting things correctly in the Sandbox Settings, because I can't make it Night earlier. The mod is working, for sure, but I think I'm not setting the offset right.

I tried -1, -2 and -3 in the Dusk field and it was still day around 11pm. Then I tried 3 (without the minus) and the night came around 11pm. I'm playing with the default start date (July 9), btw.

Maybe I need to change the Dawn offset too, to balance? Any suggestions? 'Cause if I make it right in the starting month, I'll be happy, even if it changes later in the other seasons.
Monclú  [author] 25 Apr, 2023 @ 1:40am 
Thanks to you for the feedback!
Daevinski 24 Apr, 2023 @ 2:12pm 
h, that's amazing and it totally work for me! Maybe if you decide, at some point, you can add different options for different seasons... but until that, it's just great.

Thanks! :cherrypie::spiffo:

And thanks for making this mod, I've been waiting for something like this for a long time.
Monclú  [author] 24 Apr, 2023 @ 9:51am 
Daevinski: in winter it gets real dark at 5pm and in summer at 10pm. You could set the dusk offset value to "-1.5" and in summer it will get dark at approximately 8pm, but in winter it will get dark at 4pm.
Dane 24 Apr, 2023 @ 6:58am 
Thanks for the answer :)
Daevinski 24 Apr, 2023 @ 6:22am 
As long as the option allow for an earlier sundown, it will work for me. All I want is for it to get dark around 6, 7 or 8pm tops. So, in this case... I should put a negative value in the offsite field for the Night?
Monclú  [author] 24 Apr, 2023 @ 6:07am 
Dane: in that mod you need to set the time according to the season. However in this one the time is dynamical and you can't change it.
Daevinski: It is complicated to explain. You're not going to be able to set fixed hours. It all depends on what day of the year you are on.
Dane 24 Apr, 2023 @ 3:22am 
Daevinski 23 Apr, 2023 @ 6:26pm 
With the offset options is possible to make it Night around 7PM and then Day around 5AM?
Monclú  [author] 22 Apr, 2023 @ 2:59am 
My intention of creating this mod was the same. I combine it with night sprinters and Real Time Sleep .
JuryOfYourFears 21 Apr, 2023 @ 5:26pm 
Excellent. Bout to fire it up for the first time. I've been wanting to make night time really brutal, but wanted a short brutal night lol.
Monclú  [author] 19 Apr, 2023 @ 2:02pm 
Thanks!
1) Yes, I have tested it in multiplayer and it works.

2) I have tested it with some Night Sprinters mods for multiplayer and it's worked perfectly. I think that mod is similar
JuryOfYourFears 19 Apr, 2023 @ 10:52am 
This is awesome. Couple of quick questions:

1) Is it multiplayer compatible/tested?

2) Do you know how it interacts with something like Random Zombies- Day and Night ?