Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wit/datetime does not understand European date notation #298

Closed
RetardVeverca opened this issue Aug 17, 2016 · 5 comments
Closed

Wit/datetime does not understand European date notation #298

RetardVeverca opened this issue Aug 17, 2016 · 5 comments

Comments

@RetardVeverca
Copy link

RetardVeverca commented Aug 17, 2016

Wit/datetime recognizes only US all-numeric date format (MM/DD/YYYY). All other formats which are usually used in Europe (DD/MM/, DD.MM, DD/MM/YYYY, DD.MM.YYYY ...) are converted to wit/number (e.g. "from 25.6 to 30.6" -> wit/number, wit/number) or to wit/datetime (e.g. "from 12.11 to 16.11" -> wit/datetime: from 8/17/2016, 12:11:00 AM to 8/17/2016, 4:12:00 PM) with dates recognized as hours. Even if you write the whole date with year and days which can't be interpreted as hours, you get back wit/number (e.g. "from 25.6.2016 to 30.6.2016" -> 4 x wit/number).

My wit/datetime is not trained with anything weird:

screen shot 2016-08-17 at 20 51 37

Examples:

screen shot 2016-08-17 at 20 48 33

screen shot 2016-08-17 at 20 32 08

@danqing
Copy link

danqing commented Sep 7, 2016

There needs to be a locale field. Otherwise there's no way to tell whether 8/9 is aug 9 or sep 8.

@nirmalrayan
Copy link

Do we have any solutions to this issue. Even my bot goes mad if date is passed in dd/mm/yyyy or other European formats.. But since all our users are from India, getting them to enter date in mm/dd/yyyy format is weird.. Please provide fix asap

@patapizza
Copy link
Member

@nirmalrayan wit/datetime is powered by Duckling. However locales are not supported yet: facebook/duckling#33

@jtliao jtliao closed this as completed Dec 18, 2018
@botlee
Copy link

botlee commented Dec 18, 2018

If this issue is closed, should it recognize European format? And if so, where should I config it in the app? Thanks

@patapizza
Copy link
Member

@botlee You can set the locale parameter in the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants