When parsing date expressions, assume current year

This commit is contained in:
John Wiegley 2010-06-13 23:33:06 -04:00
parent ead42c27e3
commit 6bbfb86d75

View file

@ -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"));