When creating a world, changing gamerules does not apply them to the world.
How to reproduce
When creating a new world, change any gamerule from the default value.
Enter the world and check with /gamerule command
Expected result
Gamerules are set to custom values
Actual result
Gamerules are set to default values
Thank you for helping us improve Minecraft! We saved your files: