Recognizers-Text icon indicating copy to clipboard operation
Recognizers-Text copied to clipboard

[Javascript] Year is not defaulted to 2022 if not provided

Open ierezell opened this issue 3 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Use the datetime recognizer
  2. Type :
    • "Do you have a room available 11 - 14 March?"
    • "Do you have availability for 14 rooms May 11 - 14"
    • "Book a room from 10 to 15 April"

Get correct dates or date range but the year is 2021 instead of the actual 2022

Expected behavior Having dates defaulted to 2022

Platform (please complete the following information):

  • Platform: JavaScript (might be the case for others)
  • Environment: npm package
  • Version of package [e.g. v1.0.8.1] latest (dowmnloaded the 10/02/2022)

ierezell avatar Feb 16 '22 20:02 ierezell