When a player leaves the server while all other players are in bed the night wont be skipped unless the sleeping players leave the bed and then enter it again.
I didnt have the chance to test if this bug was fixed in 1.14.1 and if it has been a problem in previous versions too
Duplicate of MC-145265.
And it's fixed in 1.14.1 🙂