Right-clicking on a bed during the day sets your spawnpoint, but displays the default "You can sleep only at night and during thunderstorms" instead of a player spawnpoint set announcement.
Repro
1. Get a bed
2. Set time to day (Or wait until day)
3. Right click on bed
Checked, the bug really works.