(quick_parse_date): Add 1900 to now_year, to counter the subtraction

that will occur in parse_date.
This commit is contained in:
John Wiegley 2005-05-13 02:31:25 +00:00
parent 46af400098
commit 1b18fd8a54

View file

@ -308,7 +308,7 @@ bool parse_date(const char * date_str, std::time_t * result, const int year)
bool quick_parse_date(const char * date_str, std::time_t * result)
{
#if 1
return parse_date(date_str, result, now_year);
return parse_date(date_str, result, now_year + 1900);
#else
int year = -1, month = -1, day, num = 0;