Fix saving with sleep time offsets

Previous version wasn't actually reading the number, and so the offset was always 0
Ensure that the times don't end before they start
- Need to do this to prevent a crash