diff options
author | John Wiegley <johnw@newartisans.com> | 2010-01-16 21:12:13 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-01-16 21:12:13 -0500 |
commit | d176abf6254cd209d712009f3b3b807fbb6a0b12 (patch) | |
tree | 9782332feab314c133480c9962755112b668c1fc /src/times.cc | |
parent | 2919710a8285db02cea7caddac7ae79b1fb071fe (diff) | |
download | fork-ledger-d176abf6254cd209d712009f3b3b807fbb6a0b12.tar.gz fork-ledger-d176abf6254cd209d712009f3b3b807fbb6a0b12.tar.bz2 fork-ledger-d176abf6254cd209d712009f3b3b807fbb6a0b12.zip |
Fix for date parsing when no year is given
Diffstat (limited to 'src/times.cc')
-rw-r--r-- | src/times.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/times.cc b/src/times.cc index d4317509..7ea3ae32 100644 --- a/src/times.cc +++ b/src/times.cc @@ -224,7 +224,7 @@ namespace { when = date_t(year ? *year : CURRENT_DATE().year(), when.month(), when.day()); - if (when.month() > CURRENT_DATE().month()) + if (! year && when.month() > CURRENT_DATE().month()) when -= gregorian::years(1); } } |