Added condition to match when darkness is imminent 

Logic is flawed when subtracting time from sunsettime just after midnight.