Fixed conditions in add() in DateTimePair.