I want to permanently freeze the day night cycle, how would one go about doing that on Java version 1.21.11?


I have looked it up, every source I find says to use the command "/gamerule doDaylightCycle false", however, as you can in see in the image I have provided, this does not work. Did the command change? Have they taken away that ability (and are there versions where it does work)?
How to freeze the day night cycle?