When parsing date expressions, assume current year
This commit is contained in:
parent
ead42c27e3
commit
6bbfb86d75
1 changed files with 1 additions and 1 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue