summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-13 23:33:06 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 23:33:06 -0400
commit6bbfb86d75ca128fc7b79ad8f0e81d9e6482eda8 (patch)
tree1d2f2acd8f0d6f80e1a1dafb985a34e12d7765aa
parentead42c27e3a8af8497623b682236b87165e06e26 (diff)
downloadfork-ledger-6bbfb86d75ca128fc7b79ad8f0e81d9e6482eda8.tar.gz
fork-ledger-6bbfb86d75ca128fc7b79ad8f0e81d9e6482eda8.tar.bz2
fork-ledger-6bbfb86d75ca128fc7b79ad8f0e81d9e6482eda8.zip
When parsing date expressions, assume current year
-rw-r--r--src/token.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/token.cc b/src/token.cc
index 9dfff065..1ba7147f 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -207,7 +207,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags,
length++;
date_interval_t timespan(buf);
- optional<date_t> begin = timespan.begin();
+ optional<date_t> begin = timespan.begin(CURRENT_DATE().year());
if (! begin)
throw_(parse_error,
_("Date specifier does not refer to a starting date"));