So, I just made my account, specifically to add this comment (and hopefully help further with other things), so I apologize in advance if I mess anything up. I'm pretty sure wayne and Anthony R White are correct, because, in answer to Brevort's question - at least in 1.17.1 Creative Mode - it skips to the next sunrise according to the F3 screen. It does not set the time to 0 ticks, as far as I can tell. I am not used to the current command syntax of /time, though, so I'm not positive. But to be clear, I did the following:
Start Vanilla Minecraft 1.17.1
Create a new, Creative Mode, Singleplayer world
Hit F3
The screen says "Day 0"
Get a Cyan Bed from the creative inventory
Do "/weather thunder"
Sleep in the bed
The screen says "Day 1"
I'm pretty sure this is what beds are always supposed to do. If the issue is that the bed does not simply skip to the end of the storm, that is not clear from the report, or any other comments. Also, if it did skip the storm, instead of skipping to the next sunrise, you might end up waking up in the middle of the night, then just getting back into the bed. And if the bug is thinking that the time should stay the same, that makes no sense from a logical or physical perspective (not that Minecraft is known for obeying physics and logic anyway). Sorry for the long comment.
So, I just made my account, specifically to add this comment (and hopefully help further with other things), so I apologize in advance if I mess anything up. I'm pretty sure wayne and Anthony R White are correct, because, in answer to Brevort's question - at least in 1.17.1 Creative Mode - it skips to the next sunrise according to the F3 screen. It does not set the time to 0 ticks, as far as I can tell. I am not used to the current command syntax of /time, though, so I'm not positive. But to be clear, I did the following:
Start Vanilla Minecraft 1.17.1
Create a new, Creative Mode, Singleplayer world
Hit F3
The screen says "Day 0"
Get a Cyan Bed from the creative inventory
Do "/weather thunder"
Sleep in the bed
The screen says "Day 1"
I'm pretty sure this is what beds are always supposed to do. If the issue is that the bed does not simply skip to the end of the storm, that is not clear from the report, or any other comments. Also, if it did skip the storm, instead of skipping to the next sunrise, you might end up waking up in the middle of the night, then just getting back into the bed. And if the bug is thinking that the time should stay the same, that makes no sense from a logical or physical perspective (not that Minecraft is known for obeying physics and logic anyway). Sorry for the long comment.