Makes wakeup time and gotosleep time deal with days and midnights
properly