I have made an iron golem farm in 1.15.2 which only works if the villagers can sleep once in a while, but I have lit all of the caves in my area and I can't stand it being night. I am looking for a command block system that automatically sets the time to day when I would be able to sleep.
I found a solution, but it seems it was made before the 1.13 update.
To clarify, the sun must move during the day (so
/gamerule doDaylightCycle false isn't a valid answer), or otherwise my iron golem farm will break. I would like a system that does this:
if time=x set time 1000