diff options
author | John Wiegley <johnw@newartisans.com> | 2005-05-13 02:31:25 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:08 -0400 |
commit | 1b18fd8a549c6c31f51203db87bc29d25dedce80 (patch) | |
tree | 263ae192d46406418cf669c7c1479d77f5bd7011 /datetime.cc | |
parent | 46af4000980a943006e414d0b84f2a595b2c4c47 (diff) | |
download | fork-ledger-1b18fd8a549c6c31f51203db87bc29d25dedce80.tar.gz fork-ledger-1b18fd8a549c6c31f51203db87bc29d25dedce80.tar.bz2 fork-ledger-1b18fd8a549c6c31f51203db87bc29d25dedce80.zip |
(quick_parse_date): Add 1900 to now_year, to counter the subtraction
that will occur in parse_date.
Diffstat (limited to 'datetime.cc')
-rw-r--r-- | datetime.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |