removed toMidnight functionality