From 1b18fd8a549c6c31f51203db87bc29d25dedce80 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 May 2005 02:31:25 +0000 Subject: (quick_parse_date): Add 1900 to now_year, to counter the subtraction that will occur in parse_date. --- datetime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datetime.cc') diff --git a/datetime.cc b/datetime.cc index 591ba8ee..f200d493 100644 --- a/datetime.cc +++ b/datetime.cc @@ -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; -- cgit v1.2.3