Fixed the wrong time for night stylesheet changes