timerange fix (current time before/after midnight)