Fixed expired code, added night mode testing, fixed midnight hour time