Fixed a bunch of the allowed times checks.