Fix to allow time periods like "every 14 days"
This commit is contained in:
parent
c367dcab82
commit
904fff97d0
1 changed files with 1 additions and 1 deletions
|
|
@ -871,7 +871,7 @@ date_interval_t date_parser_t::parse()
|
||||||
|
|
||||||
case lexer_t::token_t::TOK_EVERY:
|
case lexer_t::token_t::TOK_EVERY:
|
||||||
tok = lexer.next_token();
|
tok = lexer.next_token();
|
||||||
if (tok == lexer_t::token_t::TOK_INT) {
|
if (tok.kind == lexer_t::token_t::TOK_INT) {
|
||||||
int quantity = boost::get<unsigned short>(*tok.value);
|
int quantity = boost::get<unsigned short>(*tok.value);
|
||||||
tok = lexer.next_token();
|
tok = lexer.next_token();
|
||||||
switch (tok.kind) {
|
switch (tok.kind) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue