TW-1719: Description cannot contain improper ordinals

- Thanks to Ben Boeckel.
This commit is contained in:
Paul Beckingham 2016-01-12 00:04:48 -05:00
parent 156357285c
commit e361c2c751
3 changed files with 17 additions and 4 deletions

View file

@ -440,11 +440,7 @@ bool namedDates (const std::string& name, Variant& value)
value = Variant (mktime (t), Variant::type_date);
}
}
else
throw std::string (STRING_DATES_ORD_MISMATCH);
}
else
throw std::string (STRING_DATES_MONTH_31);
}
else if (closeEnough ("easter", name, minimum) ||