Bug Fix - #195
- Fixed problem where the date 7/31/2009, when interpreted with rc.dateformat:m/d/y, is truncated to 7/31/20.
This commit is contained in:
@@ -181,6 +181,9 @@ Date::Date (const std::string& mdy, const std::string& format /* = "m/d/Y" */)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i < mdy.length ())
|
||||||
|
throw std::string ("\"") + mdy + "\" is not a valid date in " + format + " format.";
|
||||||
|
|
||||||
if (!valid (month, day, year))
|
if (!valid (month, day, year))
|
||||||
throw std::string ("\"") + mdy + "\" is not a valid date.";
|
throw std::string ("\"") + mdy + "\" is not a valid date.";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user