wanasit / chrono

A natural language date parser in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forwardDate doesn't work when there is a range of dates

neoromantic opened this issue · comments

Specifically, I have this example:

chrono.ru.parse("С мая по ноябрь", new Date(), {forwardDate: true})

, which returns November of 2022 and May of 2023 instead of all dates be in 2023, as it should.

Same happens in English:

chrono.parse("From May to November", new Date(), {forwardDate: true})

Thanks for reporting this.
Fixed in 665bda6.