Fixed wake up time check so that it will accept wake ups a the time tie of the scheduled wake up and not only after.