From 6bbfb86d75ca128fc7b79ad8f0e81d9e6482eda8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 23:33:06 -0400 Subject: When parsing date expressions, assume current year --- src/token.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 begin = timespan.begin(); + optional begin = timespan.begin(CURRENT_DATE().year()); if (! begin) throw_(parse_error, _("Date specifier does not refer to a starting date")); -- cgit v1.2.3